Chinese translation of responsive-web-design (#40607)

This commit is contained in:
Xing Liu
2021-01-08 11:20:48 -08:00
committed by GitHub
parent 9770cd0f81
commit 05ba7c3482
193 changed files with 1266 additions and 1273 deletions

View File

@ -8,21 +8,23 @@ forumTopicId: 301090
# --description--
创建变量后CSS 属性可以通过用变量名来使用它的值。
创建变量后CSS 属性可以通过用变量名来使用它对应的值。
```css
background: var(--penguin-skin);
```
因为引用了`--penguin-skin`变量的值,使用了这个样式的元素背景颜色会是灰色。 注意:如果变量名不匹配,样式不会生效。
因为引用了 `--penguin-skin` 变量的值,使用了这个样式的元素背景颜色会是灰色。
**注意:**如果变量名不匹配,则样式不会生效。
# --instructions--
`penguin-top``penguin-bottom``right-hand``left-hand`class`background`属性均使用`--penguin-skin`变量值。
`--penguin-skin` 的值应用到 class 为 `penguin-top``penguin-bottom``right-hand``left-hand` `background`属性值。
# --hints--
`penguin-top` class `background`属性应使用`--penguin-skin`变量值。
class 为 `penguin-top` `background` 属性应使用变量 `--penguin-skin`值。
```js
assert(
@ -32,7 +34,7 @@ assert(
);
```
`penguin-bottom` class `background`属性应使用`--penguin-skin`变量值。
class 为 `penguin-bottom` `background` 属性应使用变量 `--penguin-skin`值。
```js
assert(
@ -42,7 +44,7 @@ assert(
);
```
`right-hand` class `background`属性应使用`--penguin-skin`变量值。
class 为 `right-hand` `background` 属性应使用变量 `--penguin-skin`值。
```js
assert(
@ -52,7 +54,7 @@ assert(
);
```
`left-hand` class `background`属性应使用`--penguin-skin`变量值。
class 为 `left-hand` `background` 属性应使用变量 `--penguin-skin`值。
```js
assert(