chore(i18n,curriculum): update translations (#43633)
This commit is contained in:
@ -11,9 +11,9 @@ dashedName: use-hex-code-for-specific-colors
|
||||
|
||||
你知道在 CSS 里面还有其他方式来代表颜色吗? 其中一个方法叫十六进制编码,简称 hex。
|
||||
|
||||
日常生活中,我们使用的计数方法一般是 <dfn>decimals</dfn>,或十进制,即使用数字 0 到 9 来表示。 而 <dfn>Hexadecimals</dfn>(或 <dfn>hex</dfn>)基于 16 位数字, 它包括 16 种不同字符。 像十进制一样,0-9 的符号代表 0 到 9 的值。 然后,A、B、C、D、E、F 代表 10 至 15 的值。 总的来说,0 到 F 在十六进制里代表数字,总共有 16 个值。 你可以在这里访问更多[关于十六进制的信息](https://en.wikipedia.org/wiki/Hexadecimal)。
|
||||
日常生活中,我们使用的计数方法一般是 <dfn>decimals</dfn>,或十进制,即使用数字 0 到 9 来表示。 而 <dfn>Hexadecimals</dfn>(或 <dfn>hex</dfn>)基于 16 位数字, 它包括 16 种不同字符。 像十进制一样,0-9 的符号代表 0 到 9 的值。 然后,A、B、C、D、E、F 代表 10 至 15 的值。 总的来说,0 到 F 在十六进制里代表数字,总共有 16 个值。 你可以在[此处](https://www.freecodecamp.org/news/hexadecimal-number-system/)找到更多关于十六进制信息。
|
||||
|
||||
在 CSS 里面,我们可以使用 6 个十六进制的数字来代表颜色,每两个数字控制一种颜色,分别是红(R)、绿(G)、蓝(B)。 例如,`#000000` 代表黑色,同时也是最小的值。 你可以在 [RGB color system here](https://en.wikipedia.org/wiki/RGB_color_model) 找到更多的相关信息。
|
||||
在 CSS 里面,我们可以使用 6 个十六进制的数字来代表颜色,每两个数字控制一种颜色,分别是红(R)、绿(G)、蓝(B)。 例如,`#000000` 代表黑色,同时也是最小的值。 你可以在[此处](https://www.freecodecamp.org/news/rgb-color-html-and-css-guide/#whatisthergbcolormodel)找到更多关于 RGB 颜色系统的信息。
|
||||
|
||||
```css
|
||||
body {
|
||||
|
@ -37,7 +37,7 @@ dashedName: add-images-to-your-website
|
||||
|
||||
在 `main` 元素里,给 `p` 元素前面插入一个 `img` 元素。
|
||||
|
||||
现在设置 `src` 属性,使它指向网址 `https://www.bit.ly/fcc-relaxing-cat`。
|
||||
现在设置 `src` 属性,使其指向 url `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`
|
||||
|
||||
最后,不要忘记给 `img` 加上 `alt` 属性。
|
||||
|
||||
@ -52,7 +52,7 @@ assert($('img').length);
|
||||
你的图片应该有一个 `src` 属性,其值为猫咪图片的 url。
|
||||
|
||||
```js
|
||||
assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src')));
|
||||
assert(/^https:\/\/cdn\.freecodecamp\.org\/curriculum\/cat-photo-app\/relaxing-cat\.jpg$/i.test($('img').attr('src')));
|
||||
```
|
||||
|
||||
你的图片元素的 `alt` 属性值不应为空。
|
||||
@ -86,7 +86,7 @@ assert(
|
||||
```html
|
||||
<h2>CatPhotoApp</h2>
|
||||
<main>
|
||||
<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
|
||||
<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
|
||||
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
|
||||
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user