--- id: 587d781c367417b2b2512abf title: Decrease the Opacity of an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/c7aKqu4' forumTopicId: 301055 localeTitle: 降低元素的 opactiy --- ## Description
CSS 里的 opacity 属性用来设置元素的透明度。
值 1 代表完全不透明。
值 0.5 代表半透明。
值 0 代表完全透明。
透明度会应用到元素内的所有内容,不论是图片,还是文本,或是背景色。
## Instructions
使用 links class 选择所有的超链接并设置其 opacity 值为 0.7。
## Tests
```yml tests: - text: '你应该使用 links class 选择所有的超链接并设置其 opacity 值为 0.7。' testString: assert.approximately(parseFloat($('.links').css('opacity')), 0.7, 0.1, '你应该使用 links class 选择所有的超链接并设置其 opacity 值为 0.7。'); ```
## Challenge Seed
```html

Alphabet


Google 由在斯坦福大学攻读理工博士的拉里·佩奇和谢尔盖·布林共同创建。

```
## Solution
```html // solution required ```