This commit is contained in:
sanbuphy
2026-01-04 10:34:53 +08:00
parent 58ad9c11e2
commit 4f36ae6dc6
+4 -4
View File
@@ -50,10 +50,10 @@
/* --- 全局图片样式控制 --- */ /* --- 全局图片样式控制 --- */
.markdown-section img { .markdown-section img {
max-width: 80%; /* 限制最大宽度为容器的 80% */ max-width: 80%; /* 限制最大宽度为 80% */
max-height: 600px; /* 限制最大高度,防止长图霸屏 */ max-height: 300px; /* 限制最大高度为 300px */
display: block; /* 块级显示,方便居中 */ display: block; /* 块级显示 */
margin: 20px auto; /* 上下间距 20px,左右自动居中 */ margin: 10px auto; /* 上下间距 10px,左右自动居中 */
border-radius: 4px; /* 轻微圆角 */ border-radius: 4px; /* 轻微圆角 */
box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 轻微阴影,增加质感 */ box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 轻微阴影,增加质感 */
} }