fix: replace imgur with s3 for Chinese guide without conflict (#36052)
* fix: imgur to s3 for chinese guide without conflict (cherry picked from commit 21e3afaee0f23d700f76ea662bc193b392fc54ac) * fix: remove extra links Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * fix: revert changes * fix: revert changes * fix: revert changes * fix: revert changes
This commit is contained in:
committed by
Parth Parth
parent
1e9f5bc09a
commit
23ca5d9cc6
@ -10,7 +10,7 @@ localeTitle: 通过添加细微图案作为背景图像来创建纹理
|
||||
<section id="description">为背景添加纹理和兴趣并让它更突出的一种方法是添加一种微妙的图案。关键是平衡,因为你不希望背景太突出,并从前景中拿走。 <code>background</code>属性支持<code>url()</code>函数,以便链接到所选纹理或图案的图像。链接地址用括号内的引号括起来。 </section>
|
||||
|
||||
## Instructions
|
||||
<section id="instructions">使用<code>https://i.imgur.com/MJAkxbh.png</code>的网址,使用<code>body</code>选择器设置整个页面的<code>background</code> 。 </section>
|
||||
<section id="instructions">使用<code>https://cdn-media-1.freecodecamp.org/imgr/MJAkxbh.png</code>的网址,使用<code>body</code>选择器设置整个页面的<code>background</code> 。 </section>
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
@ -18,7 +18,7 @@ localeTitle: 通过添加细微图案作为背景图像来创建纹理
|
||||
```yml
|
||||
tests:
|
||||
- text: 您的<code>body</code>元素应该将<code>background</code>属性设置为具有给定链接的<code>url()</code> 。
|
||||
testString: 'assert(code.match(/background:\s*?url\(\s*("|"|)https:\/\/i\.imgur\.com\/MJAkxbh\.png\1\s*\)/gi), "Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.");'
|
||||
testString: 'assert(code.match(/background:\s*?url\(\s*("|"|)https:\/\/cdn-media-1\.freecodecamp\.org\/imgr\/MJAkxbh\.png\1\s*\)/gi), "Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.");'
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user