diff --git a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.chinese.md b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.chinese.md index 60b7f83f73..f166a23814 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.chinese.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.chinese.md @@ -4,19 +4,19 @@ title: Add a Negative Margin to an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/cnpyGs3' forumTopicId: 16166 -localTitle: 给元素添加负外边距 +localeTitle: 给元素添加负外边距 --- ## Description
-元素的margin(外边距)控制元素边框与其他周围元素之间的距离大小。 -如果你设置元素margin为负值,元素会变得更大。 +元素的margin(外边距)控制元素border(边框)与其他周围元素之间的距离大小。 +如果你把元素的margin设置为负值,元素会变得更大。
## Instructions
-尝试设置蓝色盒子的margin为负值,跟红色盒子一样大小。 -蓝色盒子的margin设置为-15px,它会填满与黄色盒子之间的距离。 +尝试将蓝色框的margin设为负值,跟红色框一样大小。 +蓝色框的margin设置为-15px,它会填满与黄色框之间的距离。
## Tests @@ -24,8 +24,8 @@ localTitle: 给元素添加负外边距 ```yml tests: - - text: '你的blue-box class的margin应该设置为-15px。' - testString: assert($(".blue-box").css("margin-top") === "-15px", '你的blue-box class的margin应该设置为-15px。'); + - text: 'blue-box class的margin应该设置为-15px。' + testString: assert($(".blue-box").css("margin-top") === "-15px"); ``` diff --git a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-borders-around-your-elements.chinese.md b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-borders-around-your-elements.chinese.md index 812b4c794b..086596bea1 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-borders-around-your-elements.chinese.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-borders-around-your-elements.chinese.md @@ -4,13 +4,13 @@ title: Add Borders Around Your Elements challengeType: 0 videoUrl: 'https://scrimba.com/c/c2MvnHZ' forumTopicId: 16630 -localTitle: 在元素周围添加边框 +localeTitle: 在元素周围添加边框 --- ## Description
CSS 边框具有stylecolorwidth属性。 -假如,我们想要创建一个 5px 的红色实线边框包围一个 HTML 元素,我们可以这样做: +假如我们想要创建一个 5px 的红色实线边框包围一个 HTML 元素,我们可以这样做: ```html