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,29 +8,29 @@ forumTopicId: 17559
# --description--
手机屏幕空间是有限的。
手机屏幕空间是有限的。
让我们删除不必要的元素开始设计我们的CatPhotoApp。
让我们删除不必要的元素,开始设计我们的 CatPhotoApp。
# --instructions--
任务:删除`h1`元素以简化视图。
任务:删除 `h1` 元素以简化视图。
# --hints--
删除`h1`元素。
删除 `h1` 元素。
```js
assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));
```
保留`h2`元素。
保留 `h2` 元素。
```js
assert(code.match(/<h2>[\w\W]*<\/h2>/gi));
```
保留`p`元素。
保留 `p` 元素。
```js
assert(code.match(/<p>[\w\W]*<\/p>/gi));