box-shadow
属性将一个或多个阴影应用于元素。 box-shadow
属性采用offset-x
值(从元素水平推动阴影的距离), offset-y
(从元素垂直推动阴影的距离), blur-radius
, spread-radius
和颜色价值,按此顺序。 blur-radius
和spread-radius
值是可选的。这是一个用于创建具有一些模糊的多个阴影的CSS的示例,大多数是透明的黑色: box-shadow:0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);
thumbnail
ID。使用此选择器,使用上面的示例CSS值在卡上放置一个box-shadow
。 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.");'
```
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.