Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README_CN.md #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,16 @@ $ yarn add -D postcss-px-to-viewport

> `exclude`和`include`是可以一起设置的,将取两者规则的交集。

#### Ignoring (需要翻译帮助。)
#### 忽略

You can use special comments for ignore conversion of single lines:
- `/* px-to-viewport-ignore-next */` — on a separate line, prevents conversion on the next line.
- `/* px-to-viewport-ignore */` — after the property on the right, prevents conversion on the same line.
你可以使用特殊的注释来忽略对一行代码的转换:

Example:
- `/* px-to-viewport-ignore-next */` -- 独占一行, 阻止下一行的转换
- `/* px-to-viewport-ignore */` -- 写在属性之后, 阻止该行属性的转换

例子:
```css
/* example input: */
/* 转换前: */
.class {
/* px-to-viewport-ignore-next */
width: 10px;
Expand All @@ -152,7 +153,7 @@ Example:
border: solid 2px #000; /* px-to-viewport-ignore */
}

/* example output: */
/* 转换后: */
.class {
width: 10px;
padding: 3.125vw;
Expand All @@ -161,7 +162,8 @@ Example:
}
```

There are several more reasons why your pixels may not convert, the following options may affect this:
如果你的`px`属性无法转换, 以下是一些可能的因素:

`propList`, `selectorBlackList`, `minPixelValue`, `mediaQuery`, `exclude`, `include`.

#### 使用PostCss配置文件时
Expand Down