提交 cb58b512 编写于 作者: DCloud_Heavensoft's avatar DCloud_Heavensoft

Update scale.uvue

上级 14f2d7af
<template> <template>
<scroll-view class="page"> <scroll-view class="page">
<view class="trace"> <view class="trace">
<view class="base reserve"> <view class="base reserve">
<text class="reserve-text">scaleX(0.6)</text> <text class="reserve-text">scaleX(0.6)</text>
...@@ -27,48 +27,51 @@ ...@@ -27,48 +27,51 @@
<text>scale(1.2,1.2)</text> <text>scale(1.2,1.2)</text>
<text>转变后位置</text> <text>转变后位置</text>
</view> </view>
</scroll-view>
<view class="base">
<text>通过scaleY(0.5)实现0.5px的线</text>
<view style="width: 150px; height: 1px; background-color: #000; transform: scaleY(0.5)"></view>
</view>
</scroll-view>
</template> </template>
<script lang="uts"> <script lang="uts">
export default {
data() {
return {
}
},
methods: {
},
}
</script> </script>
<style> <style>
.page { .page {
flex: 1; flex: 1;
align-items: center; align-items: center;
} }
.trace {
.trace {
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 0px; left: 0px;
width: 100%; width: 100%;
align-items: center; align-items: center;
} }
.base {
.base {
margin: 10px; margin: 10px;
width: 150px; width: 150px;
height: 150px; height: 150px;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.reserve {
.reserve {
border: 1px dotted #588; border: 1px dotted #588;
background-color: #DDD; background-color: #DDD;
} }
.reserve-text {
.reserve-text {
color: #CCC; color: #CCC;
} }
.transform {
.transform {
border: 1px solid #00F; border: 1px solid #00F;
background-color: rgba(0,255,255,0.5); background-color: rgba(0, 255, 255, 0.5);
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册