--- id: 587d781b367417b2b2512abe title: Add a box-shadow to a Card-like Element challengeType: 0 videoUrl: '' localeTitle: 将盒子阴影添加到类似卡片的元素 --- ## Description
box-shadow属性将一个或多个阴影应用于元素。 box-shadow属性采用offset-x值(从元素水平推动阴影的距离), offset-y (从元素垂直推动阴影的距离), blur-radiusspread-radius和颜色价值,按此顺序。 blur-radiusspread-radius值是可选的。这是一个用于创建具有一些模糊的多个阴影的CSS的示例,大多数是透明的黑色:
box-shadow:0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);
## Instructions
该元素现在具有thumbnail ID。使用此选择器,使用上面的示例CSS值在卡上放置一个box-shadow
## Tests
```yml tests: - text: 您的代码应为thumbnail ID添加box-shadow属性。 testString: 'assert(code.match(/#thumbnail\s*?{\s*?box-shadow/g), "Your code should add a box-shadow property for the thumbnail id.");' - text: 您应该使用给定的CSS作为box-shadow值。 testString: 'assert(code.match(/box-shadow:\s*?0\s+?10px\s+?20px\s+?rgba\(\s*?0\s*?,\s*?0\s*?,\s*?0\s*?,\s*?0?\.19\),\s*?0\s+?6px\s+?6px\s+?rgba\(\s*?0\s*?,\s*?0\s*?,\s*?0\s*?,\s*?0?\.23\)/gi), "You should use the given CSS for the box-shadow value.");' ```
## 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 ```