From db8437511d90d14293bfa394172f73e785ccca89 Mon Sep 17 00:00:00 2001 From: "fu_x.i" <1538130391@qq.com> Date: Sat, 24 Feb 2024 13:27:46 +0800 Subject: [PATCH] Update README_CN.md Translation of the "Ignoring" part --- README_CN.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README_CN.md b/README_CN.md index 158f2e4..e3843ba 100644 --- a/README_CN.md +++ b/README_CN.md @@ -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; @@ -152,7 +153,7 @@ Example: border: solid 2px #000; /* px-to-viewport-ignore */ } -/* example output: */ +/* 转换后: */ .class { width: 10px; padding: 3.125vw; @@ -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配置文件时