提交 349f214d 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新CSS示例

上级 0407c862
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
} }
</style> </style>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
} }
</style> </style>
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>border-bottom: 10rpx dashed blue</text> <text>border-bottom: 5px dashed blue</text>
<view class="common" style="border-bottom: 10rpx dashed blue;"></view> <view class="common" style="border-bottom: 5px dashed blue;"></view>
</view> </view>
</view> </view>
</template> </template>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<text>border-color: red</text> <text>border-color: red</text>
<view <view
class="common" class="common"
style="border-width: 10rpx; border-color: red; border-style: solid;" style="border-width: 5px; border-color: red; border-style: solid;"
></view> ></view>
</view> </view>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<text>border-left-color: red</text> <text>border-left-color: red</text>
<view <view
class="common" class="common"
style="border-left-width: 10rpx; border-left-color: red; border-left-style:solid;" style="border-left-width: 5px; border-left-color: red; border-left-style:solid;"
></view> ></view>
</view> </view>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<text>border-top-color: green</text> <text>border-top-color: green</text>
<view <view
class="common" class="common"
style="border-top-width: 10rpx; border-top-color: green; border-top-style: solid;" style="border-top-width: 5px; border-top-color: green; border-top-style: solid;"
></view> ></view>
</view> </view>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<text>border-right-color: yellow</text> <text>border-right-color: yellow</text>
<view <view
class="common" class="common"
style="border-right-width: 10rpx; border-right-color: yellow; border-right-style: solid;" style="border-right-width: 5px; border-right-color: yellow; border-right-style: solid;"
></view> ></view>
</view> </view>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<text>border-bottom-color: blue</text> <text>border-bottom-color: blue</text>
<view <view
class="common" class="common"
style="border-bottom-width: 10rpx; border-bottom-color: blue; border-bottom-style: solid; " style="border-bottom-width: 5px; border-bottom-color: blue; border-bottom-style: solid; "
></view> ></view>
</view> </view>
</view> </view>
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>border-left: 10rpx solid blue</text> <text>border-left: 5px solid blue</text>
<view class="common" style="border-left: 10rpx solid blue;"></view> <view class="common" style="border-left: 5px solid blue;"></view>
</view> </view>
</view> </view>
</template> </template>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
...@@ -4,28 +4,28 @@ ...@@ -4,28 +4,28 @@
<!-- #endif --> <!-- #endif -->
<view style="flex-grow: 1"> <view style="flex-grow: 1">
<view> <view>
<text>border-radius: 20rpx</text> <text>border-radius: 10px</text>
<view class="common" style="border-radius: 20rpx"></view> <view class="common" style="border-radius: 10px"></view>
</view> </view>
<view> <view>
<text>border-top-left-radius: 20rpx</text> <text>border-top-left-radius: 10px</text>
<view class="common" style="border-top-left-radius: 20rpx"></view> <view class="common" style="border-top-left-radius: 10px"></view>
</view> </view>
<view> <view>
<text>border-top-right-radius: 20rpx</text> <text>border-top-right-radius: 10px</text>
<view class="common" style="border-top-right-radius: 20rpx"></view> <view class="common" style="border-top-right-radius: 10px"></view>
</view> </view>
<view> <view>
<text>border-bottom-left-radius: 20rpx</text> <text>border-bottom-left-radius: 10px</text>
<view class="common" style="border-bottom-left-radius: 20rpx"></view> <view class="common" style="border-bottom-left-radius: 10px"></view>
</view> </view>
<view> <view>
<text>border-bottom-right-radius: 20rpx</text> <text>border-bottom-right-radius: 10px</text>
<view class="common" style="border-bottom-right-radius: 20rpx"></view> <view class="common" style="border-bottom-right-radius: 10px"></view>
</view> </view>
</view> </view>
<!-- #ifdef APP --> <!-- #ifdef APP -->
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>border-right: 10rpx solid blue</text> <text>border-right: 5px solid blue</text>
<view class="common" style="border-right: 10rpx solid blue;"></view> <view class="common" style="border-right: 5px solid blue;"></view>
</view> </view>
</view> </view>
</template> </template>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<text>border-style: dashed</text> <text>border-style: dashed</text>
<view <view
class="common" class="common"
style="border-width: 10rpx; border-style: dashed" style="border-width: 5px; border-style: dashed"
></view> ></view>
</view> </view>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<text>border-left-style: dashed</text> <text>border-left-style: dashed</text>
<view <view
class="common" class="common"
style="border-left-width: 10rpx; border-left-style: dashed" style="border-left-width: 5px; border-left-style: dashed"
></view> ></view>
</view> </view>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<text>border-top-style: dashed</text> <text>border-top-style: dashed</text>
<view <view
class="common" class="common"
style="border-top-width: 10rpx; border-top-style: dashed" style="border-top-width: 5px; border-top-style: dashed"
></view> ></view>
</view> </view>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<text>border-right-style: dotted</text> <text>border-right-style: dotted</text>
<view <view
class="common" class="common"
style="border-right-width: 10rpx; border-right-style: dotted" style="border-right-width: 5px; border-right-style: dotted"
></view> ></view>
</view> </view>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<text>border-bottom-style: dotted</text> <text>border-bottom-style: dotted</text>
<view <view
class="common" class="common"
style="border-bottom-width: 10rpx; border-bottom-style: dotted" style="border-bottom-width: 5px; border-bottom-style: dotted"
></view> ></view>
</view> </view>
</view> </view>
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>border-top: 10rpx dashed blue</text> <text>border-top: 5px dashed blue</text>
<view class="common" style="border-top: 10rpx dashed blue;"></view> <view class="common" style="border-top: 5px dashed blue;"></view>
</view> </view>
</view> </view>
</template> </template>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
...@@ -4,28 +4,28 @@ ...@@ -4,28 +4,28 @@
<!-- #endif --> <!-- #endif -->
<view style="flex-grow: 1"> <view style="flex-grow: 1">
<view> <view>
<text>border-width: 10rpx</text> <text>border-width: 5px</text>
<view class="common" style="border-width: 10rpx; border-style: solid;"></view> <view class="common" style="border-width: 5px; border-style: solid;"></view>
</view> </view>
<view> <view>
<text>border-left-width: 10rpx</text> <text>border-left-width: 5px</text>
<view class="common" style="border-left-width: 10rpx; border-left-style: solid; "></view> <view class="common" style="border-left-width: 5px; border-left-style: solid; "></view>
</view> </view>
<view> <view>
<text>border-top-width: 20rpx</text> <text>border-top-width: 10px</text>
<view class="common" style="border-top-width: 20rpx; border-top-style: solid; "></view> <view class="common" style="border-top-width: 10px; border-top-style: solid; "></view>
</view> </view>
<view> <view>
<text>border-right-width: 30rpx</text> <text>border-right-width: 15px</text>
<view class="common" style="border-right-width: 30rpx; border-right-style: solid; "></view> <view class="common" style="border-right-width: 15px; border-right-style: solid; "></view>
</view> </view>
<view> <view>
<text>border-bottom-width: 40rpx</text> <text>border-bottom-width: 20px</text>
<view class="common" style="border-bottom-width: 40rpx; border-bottom-style: solid; "></view> <view class="common" style="border-bottom-width: 20px; border-bottom-style: solid; "></view>
</view> </view>
</view> </view>
<!-- #ifdef APP --> <!-- #ifdef APP -->
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>border: 10rpx dotted blue</text> <text>border: 5px dotted blue</text>
<view class="common" style="border: 10rpx dotted blue;"></view> <view class="common" style="border: 5px dotted blue;"></view>
</view> </view>
</view> </view>
</template> </template>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view> <view>
<text>圆角 : 各边之间 不同width && 不同颜色 && 不同圆角</text> <text>圆角 : 各边之间 不同width && 不同颜色 && 不同圆角</text>
<view <view
style="width: 500rpx;height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> style="width: 250px;height: 250px;background-color: gray;justify-content: center;align-items: center;">
<view class="border-circle"></view> <view class="border-circle"></view>
</view> </view>
</view> </view>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view> <view>
<text>直角 : 各边之间 不同width && 不同颜色 </text> <text>直角 : 各边之间 不同width && 不同颜色 </text>
<view <view
style="width: 500rpx;height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> style="width: 250px;height: 250px;background-color: gray;justify-content: center;align-items: center;">
<view class="border-rect"></view> <view class="border-rect"></view>
</view> </view>
</view> </view>
...@@ -24,34 +24,34 @@ ...@@ -24,34 +24,34 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
.border-circle { .border-circle {
width: 250rpx; width: 125px;
height: 250rpx; height: 125px;
background-color: #00dd00; background-color: #00dd00;
border-width: 20rpx; border-width: 10px;
border-style: solid; border-style: solid;
border-color: #000000; border-color: #000000;
border-bottom-width: 40rpx; border-bottom-width: 20px;
border-bottom-color: #ff0000; border-bottom-color: #ff0000;
border-bottom-right-radius: 50rpx; border-bottom-right-radius: 25px;
border-bottom-left-radius: 30rpx; border-bottom-left-radius: 15px;
border-radius: 10rpx; border-radius: 5px;
border-right-color: #FFDC02; border-right-color: #FFDC02;
} }
.border-rect { .border-rect {
width: 250rpx; width: 125px;
height: 250rpx; height: 125px;
border-style: solid; border-style: solid;
background-color: #00dd00; background-color: #00dd00;
border-width: 20rpx; border-width: 10px;
border-color: #000000; border-color: #000000;
border-bottom-width: 40rpx; border-bottom-width: 20px;
border-bottom-color: #ff0000; border-bottom-color: #ff0000;
border-right-color: #FFDC02; border-right-color: #FFDC02;
} }
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<view class="backgroundview"> <view class="backgroundview">
<view <view
class="common" class="common"
style="border-radius: 125rpx; box-shadow: 5px 5px black" style="border-radius: 62px; box-shadow: 5px 5px black"
></view> ></view>
</view> </view>
</view> </view>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<view class="backgroundview"> <view class="backgroundview">
<view <view
class="common" class="common"
style="border-radius: 125rpx; box-shadow: 5px 5px 5px black" style="border-radius: 62px; box-shadow: 5px 5px 5px black"
></view> ></view>
</view> </view>
</view> </view>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<view class="backgroundview"> <view class="backgroundview">
<view <view
class="common" class="common"
style="border-radius: 125rpx; box-shadow: 5px 10px 5px black" style="border-radius: 62px; box-shadow: 5px 10px 5px black"
></view> ></view>
</view> </view>
</view> </view>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<view class="backgroundview"> <view class="backgroundview">
<view <view
class="common" class="common"
style="border-radius: 125rpx; box-shadow: 5px 5px 5px 5px black" style="border-radius: 62px; box-shadow: 5px 5px 5px 5px black"
></view> ></view>
</view> </view>
</view> </view>
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<view class="backgroundview"> <view class="backgroundview">
<view <view
class="common" class="common"
style="border-radius: 125rpx; box-shadow: -5px -5px 5px black" style="border-radius: 62px; box-shadow: -5px -5px 5px black"
></view> ></view>
</view> </view>
</view> </view>
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<view <view
class="common" class="common"
style=" style="
border-radius: 125rpx; border-radius: 62px;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
" "
></view> ></view>
...@@ -165,14 +165,14 @@ ...@@ -165,14 +165,14 @@
<style> <style>
.common { .common {
width: 250rpx; width: 125px;
height: 250rpx; height: 125px;
background-color: brown; background-color: brown;
} }
.backgroundview { .backgroundview {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: white; background-color: white;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
color: red; color: red;
} }
.content { .content {
border: 10rpx dotted blue; border: 5px dotted blue;
margin: 50px 0px; margin: 50px 0px;
padding: 50px; padding: 50px;
width: 200px; width: 200px;
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
color: red; color: red;
} }
.content { .content {
border: 10rpx solid blue; border: 5px solid blue;
margin: 50px 0px; margin: 50px 0px;
padding: 50px; padding: 50px;
width: 200px; width: 200px;
......
...@@ -7,22 +7,22 @@ ...@@ -7,22 +7,22 @@
<text>align-content: center</text> <text>align-content: center</text>
<view class="common" style="align-content: center"> <view class="common" style="align-content: center">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -31,22 +31,22 @@ ...@@ -31,22 +31,22 @@
<text>align-content: flex-start</text> <text>align-content: flex-start</text>
<view class="common" style="align-content: flex-start"> <view class="common" style="align-content: flex-start">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -55,22 +55,22 @@ ...@@ -55,22 +55,22 @@
<text>align-content: flex-end</text> <text>align-content: flex-end</text>
<view class="common" style="align-content: flex-end"> <view class="common" style="align-content: flex-end">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -79,22 +79,22 @@ ...@@ -79,22 +79,22 @@
<text>align-content: space-between</text> <text>align-content: space-between</text>
<view class="common" style="align-content: space-between"> <view class="common" style="align-content: space-between">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -103,22 +103,22 @@ ...@@ -103,22 +103,22 @@
<text>align-content: space-around</text> <text>align-content: space-around</text>
<view class="common" style="align-content: space-around"> <view class="common" style="align-content: space-around">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -126,12 +126,12 @@ ...@@ -126,12 +126,12 @@
<view> <view>
<text>align-content: stretch</text> <text>align-content: stretch</text>
<view class="common" style="align-content: stretch"> <view class="common" style="align-content: stretch">
<view style="width: 100rpx; background-color: red"></view> <view style="width: 50px; background-color: red"></view>
<view style="width: 100rpx; background-color: green"></view> <view style="width: 50px; background-color: green"></view>
<view style="width: 100rpx; background-color: blue"></view> <view style="width: 50px; background-color: blue"></view>
<view style="width: 100rpx; background-color: red"></view> <view style="width: 50px; background-color: red"></view>
<view style="width: 100rpx; background-color: green"></view> <view style="width: 50px; background-color: green"></view>
<view style="width: 100rpx; background-color: blue"></view> <view style="width: 50px; background-color: blue"></view>
</view> </view>
</view> </view>
</view> </view>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
flex-flow: row wrap; flex-flow: row wrap;
} }
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
<text>align-items: center</text> <text>align-items: center</text>
<view class="common" style="align-items: center"> <view class="common" style="align-items: center">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
<text>align-items: flex-start</text> <text>align-items: flex-start</text>
<view class="common" style="align-items: flex-start"> <view class="common" style="align-items: flex-start">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<text>align-items: flex-end</text> <text>align-items: flex-end</text>
<view class="common" style="align-items: flex-end"> <view class="common" style="align-items: flex-end">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
<view> <view>
<text>align-items: stretch</text> <text>align-items: stretch</text>
<view class="common" style="align-items: stretch"> <view class="common" style="align-items: stretch">
<view style="width: 100rpx; background-color: red"></view> <view style="width: 50px; background-color: red"></view>
<view style="width: 100rpx; background-color: green"></view> <view style="width: 50px; background-color: green"></view>
<view style="width: 100rpx; background-color: blue"></view> <view style="width: 50px; background-color: blue"></view>
</view> </view>
</view> </view>
</view> </view>
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
} }
......
...@@ -4,20 +4,20 @@ ...@@ -4,20 +4,20 @@
<text>flex-basis</text> <text>flex-basis</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
> >
<view class="common" style="flex-basis: 300rpx"> <view class="common" style="flex-basis: 150px">
<text>300rpx</text> <text>150px</text>
</view> </view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<style> <style>
.common { .common {
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
<text>flex-direction: row</text> <text>flex-direction: row</text>
<view class="common" style="flex-direction: row"> <view class="common" style="flex-direction: row">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
<text>flex-direction: row-reverse</text> <text>flex-direction: row-reverse</text>
<view class="common" style="flex-direction: row-reverse"> <view class="common" style="flex-direction: row-reverse">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<text>flex-direction: column</text> <text>flex-direction: column</text>
<view class="common" style="flex-direction: column"> <view class="common" style="flex-direction: column">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
<text>flex-direction: column-reverse</text> <text>flex-direction: column-reverse</text>
<view class="common" style="flex-direction: column-reverse"> <view class="common" style="flex-direction: column-reverse">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
...@@ -8,48 +8,48 @@ ...@@ -8,48 +8,48 @@
<view class="common" style="flex-flow: row nowrap"> <view class="common" style="flex-flow: row nowrap">
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
...@@ -62,48 +62,48 @@ ...@@ -62,48 +62,48 @@
<view class="common" style="flex-flow: row wrap"> <view class="common" style="flex-flow: row wrap">
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
...@@ -116,48 +116,48 @@ ...@@ -116,48 +116,48 @@
<view class="common" style="flex-flow: column nowrap"> <view class="common" style="flex-flow: column nowrap">
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
...@@ -170,48 +170,48 @@ ...@@ -170,48 +170,48 @@
<view class="common" style="flex-flow: column wrap"> <view class="common" style="flex-flow: column wrap">
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
flex-shrink: 0; flex-shrink: 0;
" "
></view> ></view>
<view <view
style=" style="
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: blue; background-color: blue;
flex-shrink: 0; flex-shrink: 0;
" "
...@@ -226,8 +226,8 @@ ...@@ -226,8 +226,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<text>flex-grow</text> <text>flex-grow</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<style> <style>
.common { .common {
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<text>flex-shrink</text> <text>flex-shrink</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<style> <style>
.common { .common {
width: 250rpx; width: 125px;
height: 100rpx; height: 50px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
......
...@@ -7,18 +7,18 @@ ...@@ -7,18 +7,18 @@
<text>flex: 0</text> <text>flex: 0</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
> >
<view class="common" style="min-width: 50rpx; flex: 0"></view> <view class="common" style="min-width: 25px; flex: 0"></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -27,18 +27,18 @@ ...@@ -27,18 +27,18 @@
<text>flex: 1</text> <text>flex: 1</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
> >
<view class="common" style="flex: 1"></view> <view class="common" style="flex: 1"></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -47,18 +47,18 @@ ...@@ -47,18 +47,18 @@
<text>flex: auto</text> <text>flex: auto</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
> >
<view class="common" style="flex: auto"></view> <view class="common" style="flex: auto"></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -67,18 +67,18 @@ ...@@ -67,18 +67,18 @@
<text>flex: none</text> <text>flex: none</text>
<view <view
style=" style="
width: 500rpx; width: 250px;
height: 300rpx; height: 150px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
" "
> >
<view class="common" style="flex: none"></view> <view class="common" style="flex: none"></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
<style> <style>
.common { .common {
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
} }
</style> </style>
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
<text>justify-content: center</text> <text>justify-content: center</text>
<view class="common" style="justify-content: center"> <view class="common" style="justify-content: center">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
<text>justify-content: flex-start</text> <text>justify-content: flex-start</text>
<view class="common" style="justify-content: flex-start"> <view class="common" style="justify-content: flex-start">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<text>justify-content: flex-end</text> <text>justify-content: flex-end</text>
<view class="common" style="justify-content: flex-end"> <view class="common" style="justify-content: flex-end">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
<text>justify-content: space-between</text> <text>justify-content: space-between</text>
<view class="common" style="justify-content: space-between"> <view class="common" style="justify-content: space-between">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -67,13 +67,13 @@ ...@@ -67,13 +67,13 @@
<text>justify-content: space-around</text> <text>justify-content: space-around</text>
<view class="common" style="justify-content: space-around"> <view class="common" style="justify-content: space-around">
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</view> </view>
</view> </view>
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
flex-direction: row; flex-direction: row;
} }
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>height: 500rpx</text> <text>height: 250px</text>
<view class="common" style="height: 500rpx;"></view> <view class="common" style="height: 250px;"></view>
</view> </view>
<view style="height: 500rpx;"> <view style="height: 250px;">
<text>height: 50%</text> <text>height: 50%</text>
<view class="common" style="height: 50%;"></view> <view class="common" style="height: 50%;"></view>
</view> </view>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
background-color: red; background-color: red;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>max-height: 500rpx</text> <text>max-height: 250px</text>
<view class="common" style="max-height: 500rpx;"> <view class="common" style="max-height: 250px;">
<text>height: 1000rpx</text> <text>height: 500px</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 1000rpx; height: 500px;
background-color: red; background-color: red;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>max-width: 500rpx</text> <text>max-width: 250px</text>
<view class="common" style="max-width: 500rpx;"> <view class="common" style="max-width: 250px;">
<text>width: 1000rpx</text> <text>width: 500px</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<style> <style>
.common { .common {
width: 1000rpx; width: 500px;
height: 500rpx; height: 250px;
background-color: red; background-color: red;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>min-height: 500rpx</text> <text>min-height: 250px</text>
<view class="common" style="min-height: 500rpx;"> <view class="common" style="min-height: 250px;">
<text>height: 100rpx</text> <text>height: 50px</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 100rpx; height: 50px;
background-color: red; background-color: red;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>min-width: 500rpx</text> <text>min-width: 250px</text>
<view class="common" style="min-width: 500rpx;"> <view class="common" style="min-width: 250px;">
<text>width: 100rpx</text> <text>width: 50px</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<style> <style>
.common { .common {
width: 100rpx; width: 50px;
height: 500rpx; height: 250px;
background-color: red; background-color: red;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
...@@ -6,34 +6,34 @@ ...@@ -6,34 +6,34 @@
<view> <view>
<text>position: relative</text> <text>position: relative</text>
<scroll-view <scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common" style="position: relative"> <view class="common" style="position: relative">
<text>relative</text> <text>relative</text>
</view> </view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</scroll-view> </scroll-view>
</view> </view>
...@@ -41,34 +41,34 @@ ...@@ -41,34 +41,34 @@
<view> <view>
<text>position: absolute</text> <text>position: absolute</text>
<scroll-view <scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common" style="position: absolute"> <view class="common" style="position: absolute">
<text>absolute</text> <text>absolute</text>
</view> </view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</scroll-view> </scroll-view>
</view> </view>
...@@ -76,34 +76,34 @@ ...@@ -76,34 +76,34 @@
<view> <view>
<text>position: fixed</text> <text>position: fixed</text>
<scroll-view <scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common" style="position: fixed"> <view class="common" style="position: fixed">
<text>fixed</text> <text>fixed</text>
</view> </view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: green" style="width: 50px; height: 50px; background-color: green"
></view> ></view>
<view <view
style="width: 100rpx; height: 100rpx; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
></view> ></view>
</scroll-view> </scroll-view>
</view> </view>
...@@ -115,11 +115,11 @@ ...@@ -115,11 +115,11 @@
<style> <style>
.common { .common {
width: 100rpx; width: 50px;
height: 100rpx; height: 50px;
background-color: green; background-color: green;
top: 50rpx; top: 25px;
left: 50rpx; left: 25px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: red; background-color: red;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>width: 500rpx</text> <text>width: 250px</text>
<view class="common" style="width: 500rpx;"></view> <view class="common" style="width: 250px;"></view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>width: 50%</text> <text>width: 50%</text>
<view class="common" style="width: 50%;"></view> <view class="common" style="width: 50%;"></view>
</view> </view>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<style> <style>
.common { .common {
height: 500rpx; height: 250px;
background-color: red; background-color: red;
} }
</style> </style>
\ No newline at end of file
...@@ -5,21 +5,21 @@ ...@@ -5,21 +5,21 @@
<text>position: fixed</text> <text>position: fixed</text>
<text>z-index: 10</text> <text>z-index: 10</text>
</view> </view>
<view class="common fixed" style="background-color: green;z-index: 5;top: 175rpx;left: 175rpx;"> <view class="common fixed" style="background-color: green;z-index: 5;top: 87px;left: 87px;">
<text>position: fixed</text> <text>position: fixed</text>
<text>z-index: 5</text> <text>z-index: 5</text>
</view> </view>
</view> </view>
<view style="top: 500rpx;"> <view style="top: 250px;">
<view class="common" style="background-color: red;z-index: 10;"> <view class="common" style="background-color: red;z-index: 10;">
<text>z-index: 10</text> <text>z-index: 10</text>
</view> </view>
<view ref="view" class="common" style="background-color: green;z-index: 5;top: -75rpx;left: 175rpx;" <view ref="view" class="common" style="background-color: green;z-index: 5;top: -37px;left: 87px;"
@click="changeZIndex(20)"> @click="changeZIndex(20)">
<text>z-index: {{zIndex}}</text> <text>z-index: {{zIndex}}</text>
<text>点击修改z-index</text> <text>点击修改z-index</text>
</view> </view>
<view class="common" style="background-color: blue;top: -150rpx;left: 350rpx;"> <view class="common" style="background-color: blue;top: -75px;left: 175px;">
<text>z-index: 0</text> <text>z-index: 0</text>
</view> </view>
</view> </view>
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
<style> <style>
.common { .common {
width: 250rpx; width: 125px;
height: 250rpx; height: 125px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>margin-bottom: 50rpx</text> <text>margin-bottom: 25px</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-bottom: 50rpx;"></view> <view class="common" style="margin-bottom: 25px;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
</view> </view>
</view> </view>
<view> <view>
<text>margin-bottom: 10%</text> <text>margin-bottom: 10%</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-bottom: 10%;"></view> <view class="common" style="margin-bottom: 10%;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<style> <style>
.common { .common {
height: 100rpx; height: 50px;
background-color: green; background-color: green;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>margin-left: 50rpx</text> <text>margin-left: 25px</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-left: 50rpx;"></view> <view class="common" style="margin-left: 25px;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
</view> </view>
</view> </view>
<view> <view>
<text>margin-left: 10%</text> <text>margin-left: 10%</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-left: 10%;"></view> <view class="common" style="margin-left: 10%;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<style> <style>
.common { .common {
height: 100rpx; height: 50px;
background-color: green; background-color: green;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>margin-right: 50rpx</text> <text>margin-right: 25px</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-right: 50rpx;"></view> <view class="common" style="margin-right: 25px;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
</view> </view>
</view> </view>
<view> <view>
<text>margin-right: 10%</text> <text>margin-right: 10%</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-right: 10%;"></view> <view class="common" style="margin-right: 10%;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<style> <style>
.common { .common {
height: 100rpx; height: 50px;
background-color: green; background-color: green;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>margin-top: 50rpx</text> <text>margin-top: 25px</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-top: 50rpx;"></view> <view class="common" style="margin-top: 25px;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
</view> </view>
</view> </view>
<view> <view>
<text>margin-top: 10%</text> <text>margin-top: 10%</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin-top: 10%;"></view> <view class="common" style="margin-top: 10%;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<style> <style>
.common { .common {
height: 100rpx; height: 50px;
background-color: green; background-color: green;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>margin: 50rpx</text> <text>margin: 25px</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin: 50rpx;"></view> <view class="common" style="margin: 25px;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
</view> </view>
</view> </view>
<view> <view>
<text>margin: 10%</text> <text>margin: 10%</text>
<view style="width: 500rpx;height: 500rpx;background-color: gray;"> <view style="width: 250px;height: 250px;background-color: gray;">
<view class="common" style="background-color: red;"></view> <view class="common" style="background-color: red;"></view>
<view class="common" style="margin: 10%;"></view> <view class="common" style="margin: 10%;"></view>
<view class="common" style="background-color: blue;"></view> <view class="common" style="background-color: blue;"></view>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<style> <style>
.common { .common {
height: 100rpx; height: 50px;
background-color: green; background-color: green;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>padding-bottom: 50rpx</text> <text>padding-bottom: 25px</text>
<view class="common" style="padding-bottom: 50rpx;"> <view class="common" style="padding-bottom: 25px;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
</view> </view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>padding-bottom: 10%</text> <text>padding-bottom: 10%</text>
<view class="common" style="padding-bottom: 10%;"> <view class="common" style="padding-bottom: 10%;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>padding-left: 50rpx</text> <text>padding-left: 25px</text>
<view class="common" style="padding-left: 50rpx;"> <view class="common" style="padding-left: 25px;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
</view> </view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>padding-left: 10%</text> <text>padding-left: 10%</text>
<view class="common" style="padding-left: 10%;"> <view class="common" style="padding-left: 10%;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>padding-right: 50rpx</text> <text>padding-right: 25px</text>
<view class="common" style="padding-right: 50rpx;"> <view class="common" style="padding-right: 25px;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
</view> </view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>padding-right: 10%</text> <text>padding-right: 10%</text>
<view class="common" style="padding-right: 10%;"> <view class="common" style="padding-right: 10%;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>padding-top: 50rpx</text> <text>padding-top: 25px</text>
<view class="common" style="padding-top: 50rpx;"> <view class="common" style="padding-top: 25px;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
</view> </view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>padding-top: 10%</text> <text>padding-top: 10%</text>
<view class="common" style="padding-top: 10%;"> <view class="common" style="padding-top: 10%;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view> <view>
<text>padding: 50rpx</text> <text>padding: 25px</text>
<view class="common" style="padding: 50rpx;"> <view class="common" style="padding: 25px;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
</view> </view>
</view> </view>
<view style="width: 500rpx;"> <view style="width: 250px;">
<text>padding: 10%</text> <text>padding: 10%</text>
<view class="common" style="padding: 10%;"> <view class="common" style="padding: 10%;">
<view style="flex-grow: 1;background-color: red;"></view> <view style="flex-grow: 1;background-color: red;"></view>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 500rpx; height: 250px;
background-color: gray; background-color: gray;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="color: rgb(255, 0, 0);">color: rgb(255, 0, 0)</text> <text class="common" style="color: rgb(255, 0, 0);">color: rgb(255, 0, 0)</text>
<text class="common" style="color: rgba(255, 0, 0, 0.5);">color: rgba(255, 0, 0, 0.5)</text> <text class="common" style="color: rgba(255, 0, 0, 0.5);">color: rgba(255, 0, 0, 0.5)</text>
<text class="common" style="color: #ff0000;">color: #ff0000</text> <text class="common" style="color: #ff0000;">color: #ff0000</text>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text style="font-size: 30rpx;">font-size: 30rpx</text> <text style="font-size: 15px;">font-size: 15px</text>
<text style="font-size: 30px;">font-size: 30px</text> <text style="font-size: 30px;">font-size: 30px</text>
</view> </view>
</view> </view>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="font-style: italic;">font-style: italic</text> <text class="common" style="font-style: italic;">font-style: italic</text>
<text class="common" style="font-style: normal;">font-style: normal</text> <text class="common" style="font-style: normal;">font-style: normal</text>
</view> </view>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="font-weight: normal;">font-weight: normal</text> <text class="common" style="font-weight: normal;">font-weight: normal</text>
<text class="common" style="font-weight: bold;">font-weight: bold</text> <text class="common" style="font-weight: bold;">font-weight: bold</text>
<text class="common" style="font-weight: 400;">font-weight: 400</text> <text class="common" style="font-weight: 400;">font-weight: 400</text>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common">letter-spacing</text> <text class="common">letter-spacing</text>
<text class="common" style="letter-spacing: 5px;">letter-spacing: 5px</text> <text class="common" style="letter-spacing: 5px;">letter-spacing: 5px</text>
<text class="common" style="letter-spacing: -2px;">letter-spacing: -2px</text> <text class="common" style="letter-spacing: -2px;">letter-spacing: -2px</text>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 1000rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 500px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="line-height: 150rpx;">line-height: 150rpx</text> <text class="common" style="line-height: 75px;">line-height: 75px</text>
<text class="common" style="line-height: 3;">line-height: 3</text> <text class="common" style="line-height: 3;">line-height: 3</text>
<text class="common" style="line-height: 3em;">line-height: 3em</text> <text class="common" style="line-height: 3em;">line-height: 3em</text>
<text class="common" style="line-height: 3;">line-height: 3\nline-height: 3\nline-height: 3</text> <text class="common" style="line-height: 3;">line-height: 3\nline-height: 3\nline-height: 3</text>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="text-align: left;">text-align: left</text> <text class="common" style="text-align: left;">text-align: left</text>
<text class="common" style="text-align: center;">text-align: center</text> <text class="common" style="text-align: center;">text-align: center</text>
<text class="common" style="text-align: right;">text-align: right</text> <text class="common" style="text-align: right;">text-align: right</text>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
font-size: 20px; font-size: 20px;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="text-decoration-line: underline;">text-decoration-line: underline</text> <text class="common" style="text-decoration-line: underline;">text-decoration-line: underline</text>
<text class="common" style="text-decoration-line: line-through;">text-decoration-line: line-through</text> <text class="common" style="text-decoration-line: line-through;">text-decoration-line: line-through</text>
</view> </view>
......
<template> <template>
<view style="flex-grow: 1;"> <view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;"> <view style="height: 250px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="text-overflow: clip;white-space: normal;">{{text}}</text> <text class="common" style="text-overflow: clip;white-space: normal;">{{text}}</text>
<text class="common" style="text-overflow: clip;white-space: nowrap;">{{text}}</text> <text class="common" style="text-overflow: clip;white-space: nowrap;">{{text}}</text>
<text class="common" style="text-overflow: ellipsis;white-space: nowrap;">{{text}}</text> <text class="common" style="text-overflow: ellipsis;white-space: nowrap;">{{text}}</text>
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
<style> <style>
.common { .common {
width: 500rpx; width: 250px;
height: 60rpx; height: 30px;
font-size: 20px; font-size: 20px;
} }
</style> </style>
...@@ -168,18 +168,18 @@ ...@@ -168,18 +168,18 @@
<style> <style>
.container { .container {
margin: 15rpx; margin: 7px;
background-color: white; background-color: white;
} }
.text { .text {
margin-top: 20rpx; margin-top: 10px;
margin-bottom: 32rpx; margin-bottom: 16px;
} }
.base-style { .base-style {
width: 400rpx; width: 200px;
height: 400rpx; height: 200px;
background-color: brown; background-color: brown;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册