Chinese translation of responsive-web-design (#40607)
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user