freeCodeCamp/curriculum/challenges/chinese/01-responsive-web-design/responsive-web-design-projects/build-a-technical-documenta...

39 lines
4.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 587d78b0367417b2b2512b05
title: Build a Technical Documentation Page
isRequired: true
challengeType: 3
videoUrl: ''
localeTitle: 建立技术文档页面
---
## Description
<section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">CodePen.io</a>应用程序: <a href="https://codepen.io/freeCodeCamp/full/NdrKKL" target="_blank">https</a> <strong></strong> <a href="https://codepen.io" target="_blank">//codepen.io/freeCodeCamp/full/NdrKKL</a> 。完成以下<a href="https://en.wikipedia.org/wiki/User_story" target="_blank">用户故事</a>并通过所有测试。给它你自己的个人风格。您可以使用HTMLJavaScript和CSS来完成此项目。建议使用纯CSS因为这是迄今为止所涵盖的课程您应该使用纯CSS进行一些练习。如果您愿意可以使用Bootstrap或SASS。此项目不建议使用其他技术例如jQueryReactAngular或Vue使用它们需要您自担风险。其他项目将使您有机会使用不同的技术堆栈如React。我们将接受并尝试修复所有使用建议的技术堆栈的问题报告。快乐的编码 <strong>用户故事1</strong>我可以看到一个<code>main</code>元素,其中包含相应的<code>id=&quot;main-doc&quot;</code> ,其中包含页面的主要内容(技术文档)。 <strong>用户故事2</strong><code>#main-doc</code>元素中,我可以看到几个<code>section</code>元素,每个元素都有一个<code>main-section</code>类。应该至少为5. <strong>用户故事3</strong>每个<code>.main-section</code>的第一个元素应该是一个<code>header</code>元素,其中包含描述该部分主题的文本。 <strong>用户故事4</strong>每个具有<code>main-section</code>类的<code>section</code>元素也应该具有与其中包含的每个<code>header</code>文本对应的id。任何空格应用下划线被替换例如该<code>section</code>包含报头“JavaScript和Java”应具有相应的<code>id=&quot;Javascript_and_Java&quot;</code> )。 <strong>用户故事5</strong> <code>.main-section</code>元素应至少包含10个<code>p</code>元素(不是每个元素)。 <strong>用户故事6</strong> <code>.main-section</code>元素应至少包含5个<code>code</code>元素(不是每个)。 <strong>用户故事7</strong> <code>.main-section</code>元素应至少包含5个<code>li</code>项(不是每个)。 <strong>用户故事8</strong>我可以看到一个带有相应<code>id=&quot;navbar&quot;</code><code>nav</code>元素。 <strong>用户故事9</strong> navbar元素应包含一个<code>header</code>元素,其中包含描述技术文档主题的文本。 <strong>用户故事10</strong>此外,导航栏应包含带有<code>nav-link</code>类的链接( <code>a</code> )元素。对于具有类<code>main-section</code>每个元素,应该有一个。 <strong>用户故事11</strong>导航栏中的<code>header</code>元素必须位于导航栏中的任何链接( <code>a</code> )元素之前。 <strong>用户故事12</strong>每个带有<code>nav-link</code>类的元素都应该包含与每个<code>section</code><code>header</code>文本相对应的文本例如如果你有一个“Hello world”部分/标题,你的导航栏应该有一个包含文本的元素“你好,世界”)。 <strong>用户故事13</strong>当我点击导航栏元素时,页面应该导航到<code>main-doc</code>元素的相应部分例如如果我点击包含文本“Hello world”的<code>nav-link</code>元素,页面导航到一个<code>section</code> 其具有ID和包含相应的元件<code>header</code> <strong>用户故事14</strong>在正常尺寸的设备(笔记本电脑,台式机),与元件<code>id=&quot;navbar&quot;</code>应该被显示在屏幕的左侧,应始终用户可以看到<strong>用户故事15</strong>我的技术文档页面应至少使用一个媒体查询。您可以通过分叉<a href="http://codepen.io/freeCodeCamp/pen/MJjpwO" target="_blank">此CodePen笔</a>来构建项目。或者您可以使用此CDN链接在您喜欢的任何环境中运行测试 <code>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</code> <code>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</code>完成后将URL提交给工作项目并通过所有测试。请记住使用<a href="https://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck/19514" target="_blank">Read-Search-Ask</a>方法,如果你卡住了。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests: []
```
</section>
## Challenge Seed
<section id='challengeSeed'>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>