+
This is a passage
- This 1 is a 1 passage
+ This 1
+
+ is a 1
+ passage
```
@@ -253,6 +238,8 @@ Text组件通过数据绑定展示文本内容,Span组件通过设置show属
```
/* xxx.css */
.container {
+ width: 100%;
+ height: 100%;
align-items: center;
flex-direction: column;
justify-content: center;
diff --git a/zh-cn/application-dev/ui/ui-js-components-toolbar.md b/zh-cn/application-dev/ui/ui-js-components-toolbar.md
index cfbe78bf94d912ae2fcac8ad8c3e7bf2cb593cc6..09f8c17ff06b5d686d2367da9eb3014b70bac79f 100644
--- a/zh-cn/application-dev/ui/ui-js-components-toolbar.md
+++ b/zh-cn/application-dev/ui/ui-js-components-toolbar.md
@@ -23,6 +23,8 @@ Toolbar为页面工具栏组件,用于展示针对当前界面的操作选项
```
/* xxx.css */
.container {
+ width: 100%;
+ height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
@@ -44,7 +46,12 @@ toolbar-item{
-
+
+
+
+
+
+
```
@@ -53,6 +60,8 @@ toolbar-item{
```
/* xxx.css */
.container {
+ width: 100%;
+ height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
@@ -92,6 +101,7 @@ toolbar-item{
background-color: #F1F3F5;
flex-direction: column;
width: 100%;
+ height: 100%;
justify-content: center;
align-items: center;
}
@@ -131,6 +141,7 @@ toolbar-item{
background-color: #F1F3F5;
flex-direction: column;
width: 100%;
+ height: 100%;
justify-content: center;
align-items: center;
}
diff --git a/zh-cn/application-dev/ui/ui-ts-layout-grid-container.md b/zh-cn/application-dev/ui/ui-ts-layout-grid-container.md
index 23a040c5169edcdc73f6837dd9bbd89c39019d12..df9383f16bbd3f62f6de1e8dd6d148ca19d0dedc 100644
--- a/zh-cn/application-dev/ui/ui-ts-layout-grid-container.md
+++ b/zh-cn/application-dev/ui/ui-ts-layout-grid-container.md
@@ -108,8 +108,8 @@ GridContainer() {
struct GridContainerExample {
build() {
Column({ space: 5 }) {
- GridContainer({ columns: 6, sizeType: SizeType.Auto, gutter: 10, margin: 20 }) {
- Row() {
+ GridContainer({ columns: 6 }) {
+ Flex({justifyContent:FlexAlign.SpaceAround}) {
Text('1')
.useSizeType({
xs: { span: 2, offset: 0 },
@@ -120,18 +120,18 @@ struct GridContainerExample {
.height(100).backgroundColor(0x4682B4).textAlign(TextAlign.Center)
Text('2')
.useSizeType({
- xs: { span: 2, offset: 2 },
- sm: { span: 2, offset: 2 },
- md: { span: 4, offset: 1 },
- lg: { span: 4, offset: 1 },
+ xs: { span: 2, offset: 0 },
+ sm: { span: 2, offset: 0 },
+ md: { span: 4, offset: 0 },
+ lg: { span: 4, offset: 0 },
})
.height(100).backgroundColor(0x46F2B4).textAlign(TextAlign.Center)
Text('3')
.useSizeType({
- xs: { span: 2, offset: 4 },
- sm: { span: 2, offset: 4 },
- md: { span: 1, offset: 5 },
- lg: { span: 1, offset: 5 },
+ xs: { span: 2, offset: 0 },
+ sm: { span: 2, offset: 0 },
+ md: { span: 1, offset: 0 },
+ lg: { span: 1, offset: 0 },
})
.height(100).backgroundColor(0x46A2B4).textAlign(TextAlign.Center)
}