File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ img {
246
246
247
247
效果如下图:
248
248
249
- ![ image-box-shadow ] ( https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-shadow.png?raw=true )
249
+ < img src = " https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-shadow.png?raw=true " width = " 50% " alt = " box-shadow " >
250
250
251
251
如果只想给图片内容区域设置阴影,可以使用 ` filter ` 属性。
252
252
@@ -256,7 +256,9 @@ img {
256
256
}
257
257
```
258
258
259
- ![ filter-shadow] ( https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-filter-shadow.png?raw=true )
259
+ 效果如下图:
260
+
261
+ <img src =" https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-filter-shadow.png?raw=true " width =" 50% " alt =" filter-shadow " >
260
262
261
263
还有另一种方式可以是阴影的效果更好,就是在加一个一摸一样的图片元素:
262
264
@@ -281,4 +283,6 @@ img {
281
283
</body >
282
284
```
283
285
284
- ![ bg-shadow] ( https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-bg-shadow.png?raw=true )
286
+ 效果如下图:
287
+
288
+ <img src =" https://github.com/shipengqi/illustrations/blob/7c807a8f6563c7dc56aaf3675bf37f21e393494a/frontend-learn/basic/chrome-bg-shadow.png?raw=true " width =" 50% " alt =" bg-shadow " >
You can’t perform that action at this time.
0 commit comments