提交 4892fc88 编写于 作者: H HelloCrease

update docs

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 e9a9602b
...@@ -79,7 +79,7 @@ css选择器用于选择需要添加样式的元素,支持的选择器如下 ...@@ -79,7 +79,7 @@ css选择器用于选择需要添加样式的元素,支持的选择器如下
```css ```css
/* 页面样式xxx.css */ /* 页面样式xxx.css */
/\* 对所有div组件设置样式 \*/ /* 对所有div组件设置样式 */
div { div {
flex-direction: column; flex-direction: column;
} }
...@@ -95,13 +95,13 @@ div { ...@@ -95,13 +95,13 @@ div {
.title, .content { .title, .content {
padding: 5px; padding: 5px;
} }
/\* 对class="container"的组件下的所有text设置样式 \*/ /* 对class="container"的组件下的所有text设置样式 */
.container text { .container text {
color: \#007dff; color: #007dff;
} }
/\* 对class="container"的组件下的直接后代text设置样式 \*/ /* 对class="container"的组件下的直接后代text设置样式 */
.container &gt; text { .container &gt; text {
color: \#fa2a2d; color: #fa2a2d;
} }
``` ```
......
...@@ -52,10 +52,8 @@ switch为开关选择器,切换开启或关闭状态。具体用法请参考[s ...@@ -52,10 +52,8 @@ switch为开关选择器,切换开启或关闭状态。具体用法请参考[s
align-items: center; align-items: center;
background-color: #F1F3F5; background-color: #F1F3F5;
} }
switch{ switch {
// 选中时的字体颜色
texton-color: #002aff; texton-color: #002aff;
// 未选中时的字体颜色
textoff-color: silver; textoff-color: silver;
text-padding: 20px; text-padding: 20px;
font-size: 50px; font-size: 50px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册