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,41 +8,41 @@ forumTopicId: 16782
# --description--
记住:注释的开始标记是`<!--`,结束标记是`-->`
记住:注释的开始标记是 `<!--`,结束标记是 `-->`
现在你需要在`h2`元素前终止注释。
现在你需要在 `h2` 元素开始前终止注释。
# --instructions--
任务:注释掉`h1`元素和`p`元素,保留`h2`元素。
任务:注释掉 `h1` 元素和 `p` 元素,保留 `h2` 元素。
# --hints--
注释掉`h1`元素,这样它就从网页上消失了。
注释掉 `h1` 元素,这样它就从网页上消失了。
```js
assert($('h1').length === 0);
```
`h2`元素保持原样,这样网页上还能看到它。
`h2` 元素保持原样,这样网页上还能看到它。
```js
assert($('h2').length > 0);
```
注释掉`p`元素,这样它就从网页上消失了。
注释掉 `p` 元素,这样它就从网页上消失了。
```js
assert($('p').length === 0);
```
确保每一个注释都`-->`结尾。
每一个注释都应以 `-->` 结尾。
```js
assert(code.match(/[^fc]-->/g).length > 1);
```
不要更改`h1`元素、`h2` 元素、`p`元素的顺序。
不要更改 `h1` 元素、`h2` 元素、`p` 元素的顺序。
```js
assert(