mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-10 00:04:22 -05:00
799 B
799 B
id, title, challengeType, videoUrl, forumTopicId
| id | title | challengeType | videoUrl | forumTopicId |
|---|---|---|---|---|
| 587d781c367417b2b2512abf | 降低元素的 opactiy | 0 | https://scrimba.com/c/c7aKqu4 | 301055 |
--description--
CSS 里的 opacity 属性用来设置元素的透明度。
值 1 代表完全不透明。
值 0.5 代表半透明。
值 0 代表完全透明。
透明度会应用到元素内的所有内容,不论是图片,还是文本,或是背景色。
--instructions--
使用 links class 选择所有的超链接并设置其 opacity 值为 0.7。
--hints--
你应该使用 links class 选择所有的超链接并设置其 opacity 值为 0.7。
assert(
/\.links\s*{([\s\S]*?;)*\s*opacity\s*:\s*0*\.70*\s*(;[\s\S]*?|\s*)}/.test(
$('style').text()
)
);