fix: sync english and chinese responsive web design challenges (#38309)
This commit is contained in:
committed by
GitHub
parent
b3213fc892
commit
0b1ba11959
@ -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
|
||||
|
@ -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() === '理工博士');
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user