-
Notifications
You must be signed in to change notification settings - Fork 32
Translate javascript-algorithms-and-data-structures-projects #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f78814b
41acf6f
18c8fc7
8aca09a
6f6a563
62ce95f
d47c172
e1f2d8a
b3d19a1
aa4dae5
ae6b6cf
f004ea8
a0a0aef
7dc217c
0b9612d
044f83b
1ecae28
9e8c003
fdc9758
d075968
a995b32
beb6af1
035a81c
d9f3b01
7e8fa97
04bd22e
c22c82a
93ffab0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,14 +8,14 @@ | |
| "id": "5a858944d96184f06fd60d61", | ||
| "title": "Create Your First CSS Grid", | ||
| "description": [ | ||
| "Turn any HTML element into a grid container by setting its <code>display</code> property to <code>grid</code>. This gives you the ability to use all the other properties associated with CSS Grid.", | ||
| "<strong>Note</strong><br>In CSS Grid, the parent element is referred to as the <dfn>container</dfn> and its children are called <dfn>items</dfn>.", | ||
| "为了令 HTML 元素包含在网格容器中,可将 <code>display</code> 的属性值设置为 <code>grid</code> 。此后,你将可以使用关于 CSS 的不同网格特性。", | ||
| "<strong>敲黑板:</strong><br>在 CSS 网格中, 父元素可被视为 <dfn>container</dfn> 。那么他的子元素被称为 <dfn>items</dfn> 。", | ||
|
||
| "<hr>", | ||
| "Change the display of the div with the <code>container</code> class to <code>grid</code>." | ||
| "在包含以 <code>container</code> 为 class 的 div 中 ,把其中的 display 属性值设置为 grid。" | ||
|
||
| ], | ||
| "tests": [ | ||
| { | ||
| "text": "<code>container</code> class should have a <code>display</code> property with a value of <code>grid</code>.", | ||
| "text": "在名为 <code>container</code> 的 class 中,其 <code>display</code> 属性值应被设置为 <code>grid</code> 。", | ||
|
||
| "testString": "assert(code.match(/.container\\s*?{[\\s\\S]*display\\s*?:\\s*?grid\\s*?;[\\s\\S]*}/gi), '<code>container</code> class should have a <code>display</code> property with a value of <code>grid</code>.');" | ||
|
||
| } | ||
| ], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里似乎漏掉了
any的翻译,应为任何 HTML 元素。另外,建议改一下语序:
对于任何 HTML 元素,如果我们把它的 <code>display</code> 的属性值设置为 <code>grid</code>,那么它就成为了一个网格容器。对于半角符号、数字、英文字母之后是全角符号的情况,则不需要加空格。
此后,你将可以使用关于 CSS 的不同网格特性。建议改成:然后,你就可以调用 CSS 网格的其他属性。