--- id: 587d781c367417b2b2512abf title: 要素の不透明度を下げる challengeType: 0 videoUrl: 'https://scrimba.com/c/c7aKqu4' forumTopicId: 301055 dashedName: decrease-the-opacity-of-an-element --- # --description-- CSSの `opacity` プロパティは、アイテムの不透明度を調整したり、逆に透明度を調整するために使用されます。
値 1 は完全に不透明です。
値 0.5 は半分透過します。
値 0 は完全に透明です。
与えられた値は、元々透明度のある画像であろうと、テキストの文字色や背景の色であろうと関係なく、要素全体に適用されます。 # --instructions-- `links` クラスを使用してアンカータグを選択し、その `opacity` を 0.7 に設定してください。 # --hints-- `links` のクラスを選択して、アンカータグの `opacity` プロパティを 0.7 に設定する必要があります。 ```js assert( /\.links\s*{([\s\S]*?;)*\s*opacity\s*:\s*0*\.70*\s*(;[\s\S]*?|\s*)}/.test( $('style').text() ) ); ``` # --seed-- ## --seed-contents-- ```html

Alphabet


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

``` # --solutions-- ```html

Alphabet


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

```