+
@@ -71,7 +72,7 @@ export default {
```
```
@@ -101,15 +104,16 @@ Form是一个表单容器,支持容器内[Input](../reference/arkui-js/js-comp
width: 100%;
height: 100%;
flex-direction: column;
- justify-items: center
+ justify-items: center;
align-items: center;
background-color: #F1F3F5;
}
.form{
width: 100%;
height: 30%;
+ margin-top: 40%;
flex-direction: column;
- justify-items: center
+ justify-items: center;
align-items: center;
}
```
diff --git a/zh-cn/application-dev/ui/ui-js-components-images.md b/zh-cn/application-dev/ui/ui-js-components-images.md
index 091cf547dea9e8e05696e729d87f5608f6531646..6fc1087bff0193efc21d2ab17ff60f1b86a0c2c7 100644
--- a/zh-cn/application-dev/ui/ui-js-components-images.md
+++ b/zh-cn/application-dev/ui/ui-js-components-images.md
@@ -44,6 +44,8 @@ Image是图片组件,用来渲染展示图片。具体用法请参考[Image AP
```
/* xxx.css */
.container {
+ width: 100%;
+ height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
@@ -82,6 +84,8 @@ image{
```
/* xxx.css */
.container{
+ width: 100%;
+ height: 100%;
flex-direction: column;
justify-content: center;
align-self: center;
@@ -116,7 +120,8 @@ export default {
}
```
-![zh-cn_image_0000001188931396](figures/zh-cn_image_0000001188931396.gif)
+![zh-cn_image_images](figures/zh-cn_image_images.gif)
+
## 场景示例
@@ -139,6 +144,8 @@ export default {
```
/* xxx.css */
.page-container {
+ width: 100%;
+ height: 100%;
flex-direction:column;
align-self: center;
justify-content: center;
diff --git a/zh-cn/application-dev/ui/ui-js-components-list.md b/zh-cn/application-dev/ui/ui-js-components-list.md
index 849878d6d0a249282c9804ce5fe8e3231fc2840a..7590c03f05b34e9ec06e5d803d7f052960700b92 100644
--- a/zh-cn/application-dev/ui/ui-js-components-list.md
+++ b/zh-cn/application-dev/ui/ui-js-components-list.md
@@ -231,12 +231,15 @@ export default {
```
/* index.css */
.doc-page {
+ width: 100%;
+ height: 100%;
flex-direction: column;
background-color: #F1F3F5;
}
.list {
width: 100%;
- height: 100%;
+ height: 90%;
+ flex-grow: 1;
}
.item {
height: 120px;
diff --git a/zh-cn/application-dev/ui/ui-js-components-stepper.md b/zh-cn/application-dev/ui/ui-js-components-stepper.md
index 15c8e42a4a754135e2b00941b493561c1add216a..08c4a02e95f68ff02fcc586f8802725a8bcfcbb3 100644
--- a/zh-cn/application-dev/ui/ui-js-components-stepper.md
+++ b/zh-cn/application-dev/ui/ui-js-components-stepper.md
@@ -72,7 +72,7 @@ text{
width:100%;
height:100%;
flex-direction: column;
- background-color:#F1F3F5;
+ background-color: #F1F3F5;
}
text{
width: 100%;
@@ -87,7 +87,7 @@ text{
```
-
+
stepper-item1
@@ -111,7 +111,7 @@ text{
width:100%;
height:100%;
flex-direction: column;
- background-color:#F1F3F5;
+ background-color: #F1F3F5;
}
text{
width: 100%;
@@ -124,7 +124,10 @@ text{
/* index.js */
export default {
data: {
- label_1:{ nextLabel: 'NEXT', status: 'normal' },
+ label_1:{
+ nextLabel: 'NEXT',
+ status: 'normal'
+ },
label_2:{
prevLabel: 'BACK',
nextLabel: 'NEXT',
@@ -173,7 +176,8 @@ Stepper组件默认填充父容器,通过border和background-color设置边框
height: 300px;
}
.stepperClass{
- border:1px solid silver ; background-color: white;
+ border:1px solid silver ;
+ background-color: white;
}
text{
width: 100%;
diff --git a/zh-cn/application-dev/ui/ui-js-components-swiper.md b/zh-cn/application-dev/ui/ui-js-components-swiper.md
index de9f3aa008425bd06e50e3c7865e5a764aabb2f7..d318cf8ad7d7a163bab318556723d9cf30410c7a 100644
--- a/zh-cn/application-dev/ui/ui-js-components-swiper.md
+++ b/zh-cn/application-dev/ui/ui-js-components-swiper.md
@@ -159,7 +159,11 @@ text{
swiper{
width: 500px;
height: 500px;
- border-radius: 250px;indicator-color: white; indicator-selected-color: blue; indicator-size: 40px; indicator-top: 100px;
+ border-radius: 250px;
+ indicator-color: white;
+ indicator-selected-color: blue;
+ indicator-size: 40px;
+ indicator-top: 100px;
overflow: hidden ;
}
.item{
@@ -330,7 +334,8 @@ swiper{
transform: scale(0.5);
}
.actived{
- transform: scale(1);border: 1px solid #b20937ea;
+ transform: scale(1);
+ border: 1px solid #b20937ea;
}
```
diff --git a/zh-cn/application-dev/ui/ui-js-components-text.md b/zh-cn/application-dev/ui/ui-js-components-text.md
index 35c7525615dc6619c266dc88eecc99f4c28779be..0da0022df394f1a709d2eb687d6bbf8819bfdc66 100644
--- a/zh-cn/application-dev/ui/ui-js-components-text.md
+++ b/zh-cn/application-dev/ui/ui-js-components-text.md
@@ -155,6 +155,8 @@ Text是文本组件,用于呈现一段文本信息。具体用法请参考[Tex
```
/* xxx.css */
.container {
+ width: 100%;
+ height: 100%;
background-color: #F1F3F5;
flex-direction: column;
align-items: center;
@@ -167,6 +169,7 @@ Text是文本组件,用于呈现一段文本信息。具体用法请参考[Tex
justify-content: center;
}
.text1{
+ width: 100%;
height: 200px;
border:1px solid #1a1919;
margin-bottom: 50px;
@@ -175,6 +178,7 @@ Text是文本组件,用于呈现一段文本信息。具体用法请参考[Tex
font-size: 40px;
}
.text2{
+ width: 100%;
height: 200px;
border:1px solid #0931e8;
text-align: center;