You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/08/09 05:22:18 UTC

[incubator-weex-site] branch master updated: update docs about 'wx'

This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git


The following commit(s) were added to refs/heads/master by this push:
     new b896322  update docs about 'wx'
     new 9219c4b  Merge pull request #464 from katherine95s/update-about-wx
b896322 is described below

commit b896322c0173bfd83608b323b9ab3d635e39786c
Author: Katherine Jiang <li...@163.com>
AuthorDate: Fri Aug 2 17:42:37 2019 +0800

    update docs about 'wx'
---
 docs/docs/styles/common-styles.md    | 2 +-
 docs/docs/styles/css-units.md        | 6 +++---
 docs/zh/docs/styles/common-styles.md | 2 +-
 docs/zh/docs/styles/css-units.md     | 6 +++---
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/docs/styles/common-styles.md b/docs/docs/styles/common-styles.md
index 9af0607..3d38b2e 100644
--- a/docs/docs/styles/common-styles.md
+++ b/docs/docs/styles/common-styles.md
@@ -7,7 +7,7 @@ The supported styles is listed below, and some component may support custom styl
 :::
 
 ::: warning
-Weex only supports `px` as length unit, `%`, `rem`, `em` are not supported.
+Weex supports `px`and `wx`(not affected by screen width and viewPortWidth) as length unit, `%`, `rem`, `em` are not supported.
 :::
 
 ## Box Model
diff --git a/docs/docs/styles/css-units.md b/docs/docs/styles/css-units.md
index 3b37b34..69f4755 100644
--- a/docs/docs/styles/css-units.md
+++ b/docs/docs/styles/css-units.md
@@ -2,10 +2,10 @@
 
 ## CSS `length` unit
 
-`px` is the only supported length units.
+`px` 、`wx` are supported as length units. For styles that should not be affected by screen width and viewPortWidth, please use `wx` as unit.
 
 ::: danger
-Ignoring `px` will cause render error on Webview.
+Ignoring `px` or  `wx` will cause render error on Webview.
 :::
 
 ::: warning
@@ -217,4 +217,4 @@ The supported color format is listed below:
 | white | #FFFFFF |
 | whitesmoke | #F5F5F5 |
 | yellow | #FFFF00 |
-| yellowgreen | #9ACD32 |
\ No newline at end of file
+| yellowgreen | #9ACD32 |
diff --git a/docs/zh/docs/styles/common-styles.md b/docs/zh/docs/styles/common-styles.md
index 36b8221..669189e 100644
--- a/docs/zh/docs/styles/common-styles.md
+++ b/docs/zh/docs/styles/common-styles.md
@@ -7,7 +7,7 @@ Weex所支持的通用样式已在本文档中全部列出,一些组件可能
 :::
 
 ::: warning
-Weex 对于长度值目前只支持像素值,不支持相对单位(`em`、`rem`)。
+Weex 对于长度值目前只支持`px`和`wx`(不受屏幕宽度和viewPortWidth影响),不支持相对单位(`em`、`rem`)。
 :::
 
 ## 盒模型
diff --git a/docs/zh/docs/styles/css-units.md b/docs/zh/docs/styles/css-units.md
index 5754bef..4b7a278 100644
--- a/docs/zh/docs/styles/css-units.md
+++ b/docs/zh/docs/styles/css-units.md
@@ -2,11 +2,11 @@
 
 ## CSS 长度单位
 
-在 Weex 中,我们**只支持 `px` 长度单位**。
+在 Weex 中,我们**支持 `px`和`wx` 长度单位**。对于不希望受屏幕宽度和 viewPortWidth 影响的尺寸,请使用 `wx` 单位。
 
 ::: warning 注意
 - Weex 不支持类似 `em`、`rem`、`pt`,`%` 这样的 CSS 标准中的其他长度单位;
-- 单位 `px` 不可省略,否则在 H5 环境无法正确渲染;
+- 单位 `px`或`wx` 不可省略,否则在 H5 环境无法正确渲染;
 :::
 
 ## CSS 数值单位
@@ -217,4 +217,4 @@ Weex 支持多种颜色单位:
 | white | #FFFFFF |
 | whitesmoke | #F5F5F5 |
 | yellow | #FFFF00 |
-| yellowgreen | #9ACD32 |
\ No newline at end of file
+| yellowgreen | #9ACD32 |