Skip to content

Commit e703e94

Browse files
committedNov 1, 2024
fix(css): images width
1 parent 8c63c41 commit e703e94

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎content/docs/pactice/css/_index.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ img {
246246

247247
效果如下图:
248248

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">
250250

251251
如果只想给图片内容区域设置阴影,可以使用 `filter` 属性。
252252

@@ -256,7 +256,9 @@ img {
256256
}
257257
```
258258

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">
260262

261263
还有另一种方式可以是阴影的效果更好,就是在加一个一摸一样的图片元素:
262264

@@ -281,4 +283,6 @@ img {
281283
</body>
282284
```
283285

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">

0 commit comments

Comments
 (0)