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

@ -12,33 +12,33 @@ forumTopicId: 18329
注释的另一个用途就是在不删除代码的前提下,让代码不起作用。
在 HTML 中,注释的开始标记是`<!--`,结束标记是`-->`
在 HTML 中,注释的开始标签是 `<!--`,结束标签是 `-->`
# --instructions--
现在我们反其道而行之,去掉`h1`元素、`h2`元素、`p`元素的注释。
现在我们反其道而行之,去掉 `h1` 元素、`h2` 元素、`p` 元素的注释。
# --hints--
确保网页中能看到`h1`元素。
页面上应存在 `h1` 元素。
```js
assert($('h1').length > 0);
```
确保网页中能看到`h2`元素。
页面上应存在 `h2` 元素。
```js
assert($('h2').length > 0);
```
确保网页中能看到`p`元素。
页面上应存在 `p` 元素。
```js
assert($('p').length > 0);
```
确保删除注释的结束标`-->`
删除注释的结束标`-->`
```js
assert(!$('*:contains("-->")')[1]);