fix: sync english and chinese responsive web design challenges (#38309)

This commit is contained in:
Kristofer Koishigawa
2020-03-03 22:41:15 +09:00
committed by GitHub
parent b3213fc892
commit 0b1ba11959
28 changed files with 126 additions and 97 deletions

View File

@ -15,7 +15,7 @@ localeTitle: 固定定位的参照物是浏览器的窗口
## Instructions
<section id='instructions'>
代码里的导航栏已经添加了值为 <code>navbar</code> 的 id。把它的 <code>position</code> 设置成<code>fixed</code>,设定其 <code>top</code ><code>left</code> 为 0 像素。注意观察对 <code>h1</code> 的影响,<code>h1</code> 并没有被导航栏挤下来,而是遮盖住了,为了显示完全需要单独调整<code>h1</code> 的位置。
代码里的导航栏已经添加了值为 <code>navbar</code> 的 id。把它的 <code>position</code> 设置成<code>fixed</code>,设定其 <code>top</code ><code>left</code> 为 0 像素。添加代码之后,滑动预览窗口,观察导航栏的位置。
</section>
## Tests

View File

@ -24,12 +24,10 @@ localeTitle: 使用 u 标签给文本添加下划线
```yml
tests:
- text: '你应该有一个 <code>u</code> 标签。'
testString: assert($('u').length === 1, '你应该有一个 <code>u</code> 标签。');
- text: '<code>u</code> 标签应该包围 “理工博士”。'
testString: assert($('u').text() === '理工博士', '<code>u</code> 标签应该包围 “理工博士”。');
- text: '<code>u</code> 标签内不应包含额外的 <code>div</code> 标签。'
testString: assert($('u').children('div').length === 0, '<code>u</code> 标签内不应包含额外的 <code>div</code> 标签。');
- text: 你应该有一个 <code>u</code> 标签。
testString: assert($('u').length === 1);
- text: <code>u</code> 标签应该包围 “理工博士”。
testString: assert($('u').text() === '理工博士');
```