Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
349f214d
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6406
Star
112
Fork
188
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
25
列表
看板
标记
里程碑
合并请求
2
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
25
Issue
25
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
349f214d
编写于
1月 19, 2024
作者:
DCloud-yinjiacheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新CSS示例
上级
0407c862
变更
53
隐藏空白更改
内联
并排
Showing
53 changed file
with
393 addition
and
393 deletion
+393
-393
pages/CSS/background/background-color.uvue
pages/CSS/background/background-color.uvue
+2
-2
pages/CSS/background/background-image.uvue
pages/CSS/background/background-image.uvue
+2
-2
pages/CSS/border/border-bottom.uvue
pages/CSS/border/border-bottom.uvue
+4
-4
pages/CSS/border/border-color.uvue
pages/CSS/border/border-color.uvue
+7
-7
pages/CSS/border/border-left.uvue
pages/CSS/border/border-left.uvue
+4
-4
pages/CSS/border/border-radius.uvue
pages/CSS/border/border-radius.uvue
+12
-12
pages/CSS/border/border-right.uvue
pages/CSS/border/border-right.uvue
+4
-4
pages/CSS/border/border-style.uvue
pages/CSS/border/border-style.uvue
+7
-7
pages/CSS/border/border-top.uvue
pages/CSS/border/border-top.uvue
+4
-4
pages/CSS/border/border-width.uvue
pages/CSS/border/border-width.uvue
+12
-12
pages/CSS/border/border.uvue
pages/CSS/border/border.uvue
+4
-4
pages/CSS/border/complex-border/complex-border.uvue
pages/CSS/border/complex-border/complex-border.uvue
+15
-15
pages/CSS/box-shadow/box-shadow.uvue
pages/CSS/box-shadow/box-shadow.uvue
+10
-10
pages/CSS/display/flex.uvue
pages/CSS/display/flex.uvue
+1
-1
pages/CSS/display/none.uvue
pages/CSS/display/none.uvue
+1
-1
pages/CSS/flex/align-content.uvue
pages/CSS/flex/align-content.uvue
+38
-38
pages/CSS/flex/align-items.uvue
pages/CSS/flex/align-items.uvue
+14
-14
pages/CSS/flex/flex-basis.uvue
pages/CSS/flex/flex-basis.uvue
+8
-8
pages/CSS/flex/flex-direction.uvue
pages/CSS/flex/flex-direction.uvue
+14
-14
pages/CSS/flex/flex-flow.uvue
pages/CSS/flex/flex-flow.uvue
+50
-50
pages/CSS/flex/flex-grow.uvue
pages/CSS/flex/flex-grow.uvue
+4
-4
pages/CSS/flex/flex-shrink.uvue
pages/CSS/flex/flex-shrink.uvue
+4
-4
pages/CSS/flex/flex.uvue
pages/CSS/flex/flex.uvue
+19
-19
pages/CSS/flex/justify-content.uvue
pages/CSS/flex/justify-content.uvue
+17
-17
pages/CSS/layout/height.uvue
pages/CSS/layout/height.uvue
+4
-4
pages/CSS/layout/max-height.uvue
pages/CSS/layout/max-height.uvue
+5
-5
pages/CSS/layout/max-width.uvue
pages/CSS/layout/max-width.uvue
+5
-5
pages/CSS/layout/min-height.uvue
pages/CSS/layout/min-height.uvue
+5
-5
pages/CSS/layout/min-width.uvue
pages/CSS/layout/min-width.uvue
+5
-5
pages/CSS/layout/position.uvue
pages/CSS/layout/position.uvue
+31
-31
pages/CSS/layout/visibility.uvue
pages/CSS/layout/visibility.uvue
+2
-2
pages/CSS/layout/width.uvue
pages/CSS/layout/width.uvue
+4
-4
pages/CSS/layout/z-index.uvue
pages/CSS/layout/z-index.uvue
+6
-6
pages/CSS/margin/margin-bottom.uvue
pages/CSS/margin/margin-bottom.uvue
+5
-5
pages/CSS/margin/margin-left.uvue
pages/CSS/margin/margin-left.uvue
+5
-5
pages/CSS/margin/margin-right.uvue
pages/CSS/margin/margin-right.uvue
+5
-5
pages/CSS/margin/margin-top.uvue
pages/CSS/margin/margin-top.uvue
+5
-5
pages/CSS/margin/margin.uvue
pages/CSS/margin/margin.uvue
+5
-5
pages/CSS/padding/padding-bottom.uvue
pages/CSS/padding/padding-bottom.uvue
+5
-5
pages/CSS/padding/padding-left.uvue
pages/CSS/padding/padding-left.uvue
+5
-5
pages/CSS/padding/padding-right.uvue
pages/CSS/padding/padding-right.uvue
+5
-5
pages/CSS/padding/padding-top.uvue
pages/CSS/padding/padding-top.uvue
+5
-5
pages/CSS/padding/padding.uvue
pages/CSS/padding/padding.uvue
+5
-5
pages/CSS/text/color.uvue
pages/CSS/text/color.uvue
+1
-1
pages/CSS/text/font-size.uvue
pages/CSS/text/font-size.uvue
+2
-2
pages/CSS/text/font-style.uvue
pages/CSS/text/font-style.uvue
+1
-1
pages/CSS/text/font-weight.uvue
pages/CSS/text/font-weight.uvue
+1
-1
pages/CSS/text/letter-spacing.uvue
pages/CSS/text/letter-spacing.uvue
+1
-1
pages/CSS/text/line-height.uvue
pages/CSS/text/line-height.uvue
+2
-2
pages/CSS/text/text-align.uvue
pages/CSS/text/text-align.uvue
+2
-2
pages/CSS/text/text-decoration-line.uvue
pages/CSS/text/text-decoration-line.uvue
+1
-1
pages/CSS/text/text-overflow.uvue
pages/CSS/text/text-overflow.uvue
+3
-3
pages/CSS/transition/transition.uvue
pages/CSS/transition/transition.uvue
+5
-5
未找到文件。
pages/CSS/background/background-color.uvue
浏览文件 @
349f214d
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
}
}
</style>
</style>
pages/CSS/background/background-image.uvue
浏览文件 @
349f214d
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
}
}
</style>
</style>
pages/CSS/border/border-bottom.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>border-bottom:
10r
px dashed blue</text>
<text>border-bottom:
5
px dashed blue</text>
<view class="common" style="border-bottom:
10r
px dashed blue;"></view>
<view class="common" style="border-bottom:
5
px dashed blue;"></view>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/border/border-color.uvue
浏览文件 @
349f214d
...
@@ -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:
10r
px; border-color: red; border-style: solid;"
style="border-width:
5
px; 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:
10r
px; border-left-color: red; border-left-style:solid;"
style="border-left-width:
5
px; 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:
10r
px; border-top-color: green; border-top-style: solid;"
style="border-top-width:
5
px; 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:
10r
px; border-right-color: yellow; border-right-style: solid;"
style="border-right-width:
5
px; 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:
10r
px; border-bottom-color: blue; border-bottom-style: solid; "
style="border-bottom-width:
5
px; 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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/border/border-left.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>border-left:
10r
px solid blue</text>
<text>border-left:
5
px solid blue</text>
<view class="common" style="border-left:
10r
px solid blue;"></view>
<view class="common" style="border-left:
5
px solid blue;"></view>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/border/border-radius.uvue
浏览文件 @
349f214d
...
@@ -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:
20r
px</text>
<text>border-radius:
10
px</text>
<view class="common" style="border-radius:
20r
px"></view>
<view class="common" style="border-radius:
10
px"></view>
</view>
</view>
<view>
<view>
<text>border-top-left-radius:
20r
px</text>
<text>border-top-left-radius:
10
px</text>
<view class="common" style="border-top-left-radius:
20r
px"></view>
<view class="common" style="border-top-left-radius:
10
px"></view>
</view>
</view>
<view>
<view>
<text>border-top-right-radius:
20r
px</text>
<text>border-top-right-radius:
10
px</text>
<view class="common" style="border-top-right-radius:
20r
px"></view>
<view class="common" style="border-top-right-radius:
10
px"></view>
</view>
</view>
<view>
<view>
<text>border-bottom-left-radius:
20r
px</text>
<text>border-bottom-left-radius:
10
px</text>
<view class="common" style="border-bottom-left-radius:
20r
px"></view>
<view class="common" style="border-bottom-left-radius:
10
px"></view>
</view>
</view>
<view>
<view>
<text>border-bottom-right-radius:
20r
px</text>
<text>border-bottom-right-radius:
10
px</text>
<view class="common" style="border-bottom-right-radius:
20r
px"></view>
<view class="common" style="border-bottom-right-radius:
10
px"></view>
</view>
</view>
</view>
</view>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/border/border-right.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>border-right:
10r
px solid blue</text>
<text>border-right:
5
px solid blue</text>
<view class="common" style="border-right:
10r
px solid blue;"></view>
<view class="common" style="border-right:
5
px solid blue;"></view>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/border/border-style.uvue
浏览文件 @
349f214d
...
@@ -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:
10r
px; border-style: dashed"
style="border-width:
5
px; 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:
10r
px; border-left-style: dashed"
style="border-left-width:
5
px; 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:
10r
px; border-top-style: dashed"
style="border-top-width:
5
px; 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:
10r
px; border-right-style: dotted"
style="border-right-width:
5
px; 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:
10r
px; border-bottom-style: dotted"
style="border-bottom-width:
5
px; border-bottom-style: dotted"
></view>
></view>
</view>
</view>
</view>
</view>
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/border/border-top.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>border-top:
10r
px dashed blue</text>
<text>border-top:
5
px dashed blue</text>
<view class="common" style="border-top:
10r
px dashed blue;"></view>
<view class="common" style="border-top:
5
px dashed blue;"></view>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/border/border-width.uvue
浏览文件 @
349f214d
...
@@ -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:
10r
px</text>
<text>border-width:
5
px</text>
<view class="common" style="border-width:
10r
px; border-style: solid;"></view>
<view class="common" style="border-width:
5
px; border-style: solid;"></view>
</view>
</view>
<view>
<view>
<text>border-left-width:
10r
px</text>
<text>border-left-width:
5
px</text>
<view class="common" style="border-left-width:
10r
px; border-left-style: solid; "></view>
<view class="common" style="border-left-width:
5
px; border-left-style: solid; "></view>
</view>
</view>
<view>
<view>
<text>border-top-width:
20r
px</text>
<text>border-top-width:
10
px</text>
<view class="common" style="border-top-width:
20r
px; border-top-style: solid; "></view>
<view class="common" style="border-top-width:
10
px; border-top-style: solid; "></view>
</view>
</view>
<view>
<view>
<text>border-right-width:
30r
px</text>
<text>border-right-width:
15
px</text>
<view class="common" style="border-right-width:
30r
px; border-right-style: solid; "></view>
<view class="common" style="border-right-width:
15
px; border-right-style: solid; "></view>
</view>
</view>
<view>
<view>
<text>border-bottom-width:
40r
px</text>
<text>border-bottom-width:
20
px</text>
<view class="common" style="border-bottom-width:
40r
px; border-bottom-style: solid; "></view>
<view class="common" style="border-bottom-width:
20
px; 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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/border/border.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>border:
10r
px dotted blue</text>
<text>border:
5
px dotted blue</text>
<view class="common" style="border:
10r
px dotted blue;"></view>
<view class="common" style="border:
5
px dotted blue;"></view>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/border/complex-border/complex-border.uvue
浏览文件 @
349f214d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view>
<view>
<text>圆角 : 各边之间 不同width && 不同颜色 && 不同圆角</text>
<text>圆角 : 各边之间 不同width && 不同颜色 && 不同圆角</text>
<view
<view
style="width:
500rpx;height: 500r
px;background-color: gray;justify-content: center;align-items: center;">
style="width:
250px;height: 250
px;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: 500r
px;background-color: gray;justify-content: center;align-items: center;">
style="width:
250px;height: 250
px;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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
.border-circle {
.border-circle {
width:
250r
px;
width:
125
px;
height:
250r
px;
height:
125
px;
background-color: #00dd00;
background-color: #00dd00;
border-width:
20r
px;
border-width:
10
px;
border-style: solid;
border-style: solid;
border-color: #000000;
border-color: #000000;
border-bottom-width:
40r
px;
border-bottom-width:
20
px;
border-bottom-color: #ff0000;
border-bottom-color: #ff0000;
border-bottom-right-radius:
50r
px;
border-bottom-right-radius:
25
px;
border-bottom-left-radius:
30r
px;
border-bottom-left-radius:
15
px;
border-radius:
10r
px;
border-radius:
5
px;
border-right-color: #FFDC02;
border-right-color: #FFDC02;
}
}
.border-rect {
.border-rect {
width:
250r
px;
width:
125
px;
height:
250r
px;
height:
125
px;
border-style: solid;
border-style: solid;
background-color: #00dd00;
background-color: #00dd00;
border-width:
20r
px;
border-width:
10
px;
border-color: #000000;
border-color: #000000;
border-bottom-width:
40r
px;
border-bottom-width:
20
px;
border-bottom-color: #ff0000;
border-bottom-color: #ff0000;
border-right-color: #FFDC02;
border-right-color: #FFDC02;
}
}
...
...
pages/CSS/box-shadow/box-shadow.uvue
浏览文件 @
349f214d
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<view class="backgroundview">
<view class="backgroundview">
<view
<view
class="common"
class="common"
style="border-radius:
125r
px; box-shadow: 5px 5px black"
style="border-radius:
62
px; 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:
125r
px; box-shadow: 5px 5px 5px black"
style="border-radius:
62
px; 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:
125r
px; box-shadow: 5px 10px 5px black"
style="border-radius:
62
px; 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:
125r
px; box-shadow: 5px 5px 5px 5px black"
style="border-radius:
62
px; 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:
125r
px; box-shadow: -5px -5px 5px black"
style="border-radius:
62
px; 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:
125r
px;
border-radius:
62
px;
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:
250r
px;
width:
125
px;
height:
250r
px;
height:
125
px;
background-color: brown;
background-color: brown;
}
}
.backgroundview {
.backgroundview {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: white;
background-color: white;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/display/flex.uvue
浏览文件 @
349f214d
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
color: red;
color: red;
}
}
.content {
.content {
border:
10r
px dotted blue;
border:
5
px dotted blue;
margin: 50px 0px;
margin: 50px 0px;
padding: 50px;
padding: 50px;
width: 200px;
width: 200px;
...
...
pages/CSS/display/none.uvue
浏览文件 @
349f214d
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
color: red;
color: red;
}
}
.content {
.content {
border:
10r
px solid blue;
border:
5
px solid blue;
margin: 50px 0px;
margin: 50px 0px;
padding: 50px;
padding: 50px;
width: 200px;
width: 200px;
...
...
pages/CSS/flex/align-content.uvue
浏览文件 @
349f214d
...
@@ -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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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:
100r
px; background-color: red"></view>
<view style="width:
50
px; background-color: red"></view>
<view style="width:
100r
px; background-color: green"></view>
<view style="width:
50
px; background-color: green"></view>
<view style="width:
100r
px; background-color: blue"></view>
<view style="width:
50
px; background-color: blue"></view>
<view style="width:
100r
px; background-color: red"></view>
<view style="width:
50
px; background-color: red"></view>
<view style="width:
100r
px; background-color: green"></view>
<view style="width:
50
px; background-color: green"></view>
<view style="width:
100r
px; background-color: blue"></view>
<view style="width:
50
px; background-color: blue"></view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
flex-flow: row wrap;
flex-flow: row wrap;
}
}
...
...
pages/CSS/flex/align-items.uvue
浏览文件 @
349f214d
...
@@ -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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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:
100r
px; background-color: red"></view>
<view style="width:
50
px; background-color: red"></view>
<view style="width:
100r
px; background-color: green"></view>
<view style="width:
50
px; background-color: green"></view>
<view style="width:
100r
px; background-color: blue"></view>
<view style="width:
50
px; background-color: blue"></view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
flex-direction: row;
flex-direction: row;
}
}
...
...
pages/CSS/flex/flex-basis.uvue
浏览文件 @
349f214d
...
@@ -4,20 +4,20 @@
...
@@ -4,20 +4,20 @@
<text>flex-basis</text>
<text>flex-basis</text>
<view
<view
style="
style="
width:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
background-color: gray;
background-color: gray;
flex-direction: row;
flex-direction: row;
"
"
>
>
<view class="common" style="flex-basis:
300r
px">
<view class="common" style="flex-basis:
150
px">
<text>
300r
px</text>
<text>
150
px</text>
</view>
</view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
</view>
</view>
</view>
</view>
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
<style>
<style>
.common {
.common {
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/flex/flex-direction.uvue
浏览文件 @
349f214d
...
@@ -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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
</view>
</view>
</view>
</view>
...
@@ -70,8 +70,8 @@
...
@@ -70,8 +70,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/flex/flex-flow.uvue
浏览文件 @
349f214d
...
@@ -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:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: blue;
background-color: blue;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
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:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: blue;
background-color: blue;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
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:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: blue;
background-color: blue;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
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:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: blue;
background-color: blue;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
flex-shrink: 0;
flex-shrink: 0;
"
"
></view>
></view>
<view
<view
style="
style="
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
pages/CSS/flex/flex-grow.uvue
浏览文件 @
349f214d
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<text>flex-grow</text>
<text>flex-grow</text>
<view
<view
style="
style="
width:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
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:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
}
}
...
...
pages/CSS/flex/flex-shrink.uvue
浏览文件 @
349f214d
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<text>flex-shrink</text>
<text>flex-shrink</text>
<view
<view
style="
style="
width:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
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:
250r
px;
width:
125
px;
height:
100r
px;
height:
50
px;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
}
}
...
...
pages/CSS/flex/flex.uvue
浏览文件 @
349f214d
...
@@ -7,18 +7,18 @@
...
@@ -7,18 +7,18 @@
<text>flex: 0</text>
<text>flex: 0</text>
<view
<view
style="
style="
width:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
background-color: gray;
background-color: gray;
flex-direction: row;
flex-direction: row;
"
"
>
>
<view class="common" style="min-width:
50r
px; flex: 0"></view>
<view class="common" style="min-width:
25
px; flex: 0"></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
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: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
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: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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:
500r
px;
width:
250
px;
height:
300r
px;
height:
150
px;
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: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
</view>
</view>
</view>
</view>
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
<style>
<style>
.common {
.common {
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
}
}
</style>
</style>
pages/CSS/flex/justify-content.uvue
浏览文件 @
349f214d
...
@@ -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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
</view>
</view>
</view>
</view>
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
flex-direction: row;
flex-direction: row;
}
}
...
...
pages/CSS/layout/height.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>height:
500r
px</text>
<text>height:
250
px</text>
<view class="common" style="height:
500r
px;"></view>
<view class="common" style="height:
250
px;"></view>
</view>
</view>
<view style="height:
500r
px;">
<view style="height:
250
px;">
<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:
500r
px;
width:
250
px;
background-color: red;
background-color: red;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/layout/max-height.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>max-height:
500r
px</text>
<text>max-height:
250
px</text>
<view class="common" style="max-height:
500r
px;">
<view class="common" style="max-height:
250
px;">
<text>height:
1000r
px</text>
<text>height:
500
px</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
1000r
px;
height:
500
px;
background-color: red;
background-color: red;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/layout/max-width.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>max-width:
500r
px</text>
<text>max-width:
250
px</text>
<view class="common" style="max-width:
500r
px;">
<view class="common" style="max-width:
250
px;">
<text>width:
1000r
px</text>
<text>width:
500
px</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<style>
<style>
.common {
.common {
width:
1000r
px;
width:
500
px;
height:
500r
px;
height:
250
px;
background-color: red;
background-color: red;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/layout/min-height.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>min-height:
500r
px</text>
<text>min-height:
250
px</text>
<view class="common" style="min-height:
500r
px;">
<view class="common" style="min-height:
250
px;">
<text>height:
100r
px</text>
<text>height:
50
px</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
100r
px;
height:
50
px;
background-color: red;
background-color: red;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/layout/min-width.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>min-width:
500r
px</text>
<text>min-width:
250
px</text>
<view class="common" style="min-width:
500r
px;">
<view class="common" style="min-width:
250
px;">
<text>width:
100r
px</text>
<text>width:
50
px</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<style>
<style>
.common {
.common {
width:
100r
px;
width:
50
px;
height:
500r
px;
height:
250
px;
background-color: red;
background-color: red;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
...
pages/CSS/layout/position.uvue
浏览文件 @
349f214d
...
@@ -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: 500r
px; background-color: gray"
style="width:
250px; height: 250
px; background-color: gray"
>
>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 500r
px; background-color: gray"
style="width:
250px; height: 250
px; background-color: gray"
>
>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; 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: 500r
px; background-color: gray"
style="width:
250px; height: 250
px; background-color: gray"
>
>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; 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: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: red"
style="width:
50px; height: 50
px; background-color: red"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: green"
style="width:
50px; height: 50
px; background-color: green"
></view>
></view>
<view
<view
style="width:
100rpx; height: 100r
px; background-color: blue"
style="width:
50px; height: 50
px; background-color: blue"
></view>
></view>
</scroll-view>
</scroll-view>
</view>
</view>
...
@@ -115,11 +115,11 @@
...
@@ -115,11 +115,11 @@
<style>
<style>
.common {
.common {
width:
100r
px;
width:
50
px;
height:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
top:
50r
px;
top:
25
px;
left:
50r
px;
left:
25
px;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
}
}
...
...
pages/CSS/layout/visibility.uvue
浏览文件 @
349f214d
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
<style>
<style>
.common {
.common {
width:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: red;
background-color: red;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/layout/width.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>width:
500r
px</text>
<text>width:
250
px</text>
<view class="common" style="width:
500r
px;"></view>
<view class="common" style="width:
250
px;"></view>
</view>
</view>
<view style="width:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
height:
250
px;
background-color: red;
background-color: red;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/layout/z-index.uvue
浏览文件 @
349f214d
...
@@ -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: 175r
px;">
<view class="common fixed" style="background-color: green;z-index: 5;top:
87px;left: 87
px;">
<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:
500r
px;">
<view style="top:
250
px;">
<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: 175r
px;"
<view ref="view" class="common" style="background-color: green;z-index: 5;top: -
37px;left: 87
px;"
@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: 350r
px;">
<view class="common" style="background-color: blue;top: -
75px;left: 175
px;">
<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:
250r
px;
width:
125
px;
height:
250r
px;
height:
125
px;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
}
}
...
...
pages/CSS/margin/margin-bottom.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>margin-bottom:
50r
px</text>
<text>margin-bottom:
25
px</text>
<view style="width:
500rpx;height: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
50r
px;"></view>
<view class="common" style="margin-bottom:
25
px;"></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: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/margin/margin-left.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>margin-left:
50r
px</text>
<text>margin-left:
25
px</text>
<view style="width:
500rpx;height: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
50r
px;"></view>
<view class="common" style="margin-left:
25
px;"></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: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/margin/margin-right.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>margin-right:
50r
px</text>
<text>margin-right:
25
px</text>
<view style="width:
500rpx;height: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
50r
px;"></view>
<view class="common" style="margin-right:
25
px;"></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: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/margin/margin-top.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>margin-top:
50r
px</text>
<text>margin-top:
25
px</text>
<view style="width:
500rpx;height: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
50r
px;"></view>
<view class="common" style="margin-top:
25
px;"></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: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/margin/margin.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>margin:
50r
px</text>
<text>margin:
25
px</text>
<view style="width:
500rpx;height: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;background-color: gray;">
<view class="common" style="background-color: red;"></view>
<view class="common" style="background-color: red;"></view>
<view class="common" style="margin:
50r
px;"></view>
<view class="common" style="margin:
25
px;"></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: 500r
px;background-color: gray;">
<view style="width:
250px;height: 250
px;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:
100r
px;
height:
50
px;
background-color: green;
background-color: green;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/padding/padding-bottom.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>padding-bottom:
50r
px</text>
<text>padding-bottom:
25
px</text>
<view class="common" style="padding-bottom:
50r
px;">
<view class="common" style="padding-bottom:
25
px;">
<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:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/padding/padding-left.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>padding-left:
50r
px</text>
<text>padding-left:
25
px</text>
<view class="common" style="padding-left:
50r
px;">
<view class="common" style="padding-left:
25
px;">
<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:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/padding/padding-right.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>padding-right:
50r
px</text>
<text>padding-right:
25
px</text>
<view class="common" style="padding-right:
50r
px;">
<view class="common" style="padding-right:
25
px;">
<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:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/padding/padding-top.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>padding-top:
50r
px</text>
<text>padding-top:
25
px</text>
<view class="common" style="padding-top:
50r
px;">
<view class="common" style="padding-top:
25
px;">
<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:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/padding/padding.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view>
<view>
<text>padding:
50r
px</text>
<text>padding:
25
px</text>
<view class="common" style="padding:
50r
px;">
<view class="common" style="padding:
25
px;">
<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:
500r
px;">
<view style="width:
250
px;">
<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:
500r
px;
width:
250
px;
height:
500r
px;
height:
250
px;
background-color: gray;
background-color: gray;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/text/color.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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>
...
...
pages/CSS/text/font-size.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;background-color: gray;justify-content: center;align-items: center;">
<text style="font-size:
30rpx;">font-size: 30r
px</text>
<text style="font-size:
15px;">font-size: 15
px</text>
<text style="font-size: 30px;">font-size: 30px</text>
<text style="font-size: 30px;">font-size: 30px</text>
</view>
</view>
</view>
</view>
...
...
pages/CSS/text/font-style.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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>
...
...
pages/CSS/text/font-weight.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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>
...
...
pages/CSS/text/letter-spacing.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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>
...
...
pages/CSS/text/line-height.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
1000r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
500
px;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="line-height:
150rpx;">line-height: 150r
px</text>
<text class="common" style="line-height:
75px;">line-height: 75
px</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>
...
...
pages/CSS/text/text-align.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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:
500r
px;
width:
250
px;
font-size: 20px;
font-size: 20px;
}
}
</style>
</style>
\ No newline at end of file
pages/CSS/text/text-decoration-line.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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>
...
...
pages/CSS/text/text-overflow.uvue
浏览文件 @
349f214d
<template>
<template>
<view style="flex-grow: 1;">
<view style="flex-grow: 1;">
<view style="height:
500r
px;background-color: gray;justify-content: center;align-items: center;">
<view style="height:
250
px;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:
500r
px;
width:
250
px;
height:
60r
px;
height:
30
px;
font-size: 20px;
font-size: 20px;
}
}
</style>
</style>
pages/CSS/transition/transition.uvue
浏览文件 @
349f214d
...
@@ -168,18 +168,18 @@
...
@@ -168,18 +168,18 @@
<style>
<style>
.container {
.container {
margin:
15r
px;
margin:
7
px;
background-color: white;
background-color: white;
}
}
.text {
.text {
margin-top:
20r
px;
margin-top:
10
px;
margin-bottom:
32r
px;
margin-bottom:
16
px;
}
}
.base-style {
.base-style {
width:
400r
px;
width:
200
px;
height:
400r
px;
height:
200
px;
background-color: brown;
background-color: brown;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录