2018-10-10 18:03:03 -04:00
---
id: bad87fee1348bd9aedf08833
title: Fill in the Blank with Placeholder Text
challengeType: 0
2019-12-26 20:05:59 +08:00
videoUrl: 'https://scrimba.com/p/pVMPUv/cgR7Dc7'
forumTopicId: 18178
localeTitle: 用占位符文本填充空白
2018-10-10 18:03:03 -04:00
---
## Description
2019-12-26 20:05:59 +08:00
< section id = 'description' >
Web 开发者通常用< a href = 'https://baike.baidu.com/item/Lorem%20ipsum/3684081' > lorem ipsum text< / a > 来做占位符,占位符就是占着位置的一些文字,没有实际意义。
为什么叫< code > lorem ipsum text< / code > 呢?是因为< code > lorem ipsum< / code > 是古罗马西塞罗谚语的前两个单词。
< / section >
2018-10-10 18:03:03 -04:00
## Instructions
2019-12-26 20:05:59 +08:00
< section id = 'instructions' >
把< code > p< / code > 元素的内容更换为:< code > Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.< / code >
< / section >
2018-10-10 18:03:03 -04:00
## Tests
< section id = 'tests' >
```yml
tests:
2019-12-26 20:05:59 +08:00
- text: '< code > p</ code > 元素的内容必须包含< code > Monkey code</ code > 。'
testString: assert.isTrue((/Kitty(\s)+ipsum/gi).test($("p").text()));
2018-10-10 18:03:03 -04:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```html
< h1 > Hello World< / h1 >
< h2 > CatPhotoApp< / h2 >
< p > Hello Paragraph< / p >
```
< / div >
< / section >
## Solution
< section id = 'solution' >
< / section >
2019-12-26 20:05:59 +08:00