--- id: bad87fee1348bd9aedf08823 title: Add a Negative Margin to an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/cnpyGs3' forumTopicId: 16166 localeTitle: 给元素添加负外边距 --- ## Description
元素的margin(外边距)控制元素border(边框)与其他周围元素之间的距离大小。 如果你把元素的margin设置为负值,元素会变得更大。
## Instructions
尝试将蓝色框的margin设为负值,跟红色框一样大小。 蓝色框的margin设置为-15px,它会填满与黄色框之间的距离。
## Tests
```yml tests: - text: 'blue-box class的margin应该设置为-15px。' testString: assert($(".blue-box").css("margin-top") === "-15px"); ```
## Challenge Seed
```html
padding
padding
```
## Solution
```html // solution required ```