# 通过创建小测验学习无障碍 - 步骤 67

**URL:** <https://forum.freecodecamp.org/t/topic/675973>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [February 29, 2024, 6:50am UTC](https://forum.freecodecamp.org/t/topic/675973 "2024-02-29T06:50:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongdong](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dongdong](https://forum.freecodecamp.org/u/dongdong)\
**Post date:** [February 29, 2024, 6:50am UTC](https://forum.freecodecamp.org/t/topic/675973/1 "2024-02-29T06:50:44Z")

</div>

### Tell us what’s happenin

你应该有一个 `@media (prefers-reduced-motion: no-preference)` 规则。  
???

### Your code so far

- {  
scroll-behavior: smooth;

}  
@media (feature: value){  
prefers-reduced-motion: no-preference;  
}

警告

挑战的种子代码和/或你的解决方案超过了我们从挑战传送的最大长度。

你需要在此采取额外步骤，以确保你写的代码可以轻松地被阅读。

请复制/粘贴所有在挑战中编辑器所显示的代码。

````plaintext
用你的复制代码替换这两句。
请保留上方的 ``` 行和下方的 ``` 行
因为它们允许你的代码在帖子中被正确格式化。

````

### Your browser information:

用户代理是： `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0`

### Challenge Information:

通过创建小测验学习无障碍 - 步骤 67

> **[freeCodeCamp.org](https://www.freecodecamp.org/chinese/learn/2022/responsive-web-design/learn-accessibility-by-building-a-quiz/step-67)**
>
> 免费学习编程

---

<div class="post-metadata">

**Author:** ![miya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/miya/32/417705_2.png) [@miya](https://forum.freecodecamp.org/u/miya)\
**Post date:** [February 29, 2024, 9:54am UTC](https://forum.freecodecamp.org/t/topic/675973/2 "2024-02-29T09:54:45Z")

</div>

题目中给的格式是这样的：

```auto
@media (feature: value) {
  selector {
    styles
  }
}

```

其中，`prefers-reduced-motion` 对应格式中的 `feature`， `no-preference` 对应格式中的 `value`，而已有代码的 `*` 对应格式中的 `selector`。

---

<div class="post-metadata">

**Author:** ![dongdong](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dongdong](https://forum.freecodecamp.org/u/dongdong)\
**Post date:** [March 1, 2024, 6:20am UTC](https://forum.freecodecamp.org/t/topic/675973/3 "2024-03-01T06:20:53Z")

</div>

非常感谢你的回答！按你的提示，问题解决了！ ❤ ❤ ❤

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 7, 2025, 2:20pm UTC](https://forum.freecodecamp.org/t/topic/675973/4 "2025-01-07T14:20:15Z")

</div>

Closed on January 7, 2025, 2:20pm UTC


