chore(i18n,curriculum): update translations (#43633)

This commit is contained in:
camperbot
2021-09-30 07:29:50 -07:00
committed by GitHub
parent ababb4bc0b
commit b38ddc0fd6
18 changed files with 180 additions and 128 deletions

View File

@@ -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 {

View File

@@ -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>