--- id: 587d781c367417b2b2512abf title: Decrease the Opacity of an Element challengeType: 0 videoUrl: '' localeTitle: 降低元素的不透明度 --- ## Description
CSS中的opacity属性用于调整不透明度,或相反,用于调整项目的透明度。
值1是不透明的,根本不透明。
值0.5是半透明的。
值0完全透明。
给定的值将应用于整个元素,无论是具有一定透明度的图像,还是文本块的前景色和背景色。
## Instructions
使用links类将锚标记的opacity设置为0.7以选择它们。
## Tests
```yml tests: - text: 您的代码应通过选择links类将锚点标记上的opacity属性设置为0.7。 testString: 'assert.approximately(parseFloat($(".links").css("opacity")), 0.7, 0.1, "Your code should set the opacity property to 0.7 on the anchor tags by selecting the class of links.");' ```
## Challenge Seed
```html

Alphabet


Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

```
## Solution
```js // solution required ```