Spaces:
Running
Running
Update assets/css/custom_style.css
Browse files- assets/css/custom_style.css +25 -0
assets/css/custom_style.css
CHANGED
@@ -133,3 +133,28 @@ input[type='radio'] { visibility: hidden; display: none; }
|
|
133 |
.highlight {
|
134 |
background-color: yellow;
|
135 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
.highlight {
|
134 |
background-color: yellow;
|
135 |
}
|
136 |
+
|
137 |
+
/* 容器样式 */
|
138 |
+
.image-container {
|
139 |
+
display: flex; /* 使用 flexbox 实现并排布局 */
|
140 |
+
justify-content: space-around; /* 图片之间留有间距 */
|
141 |
+
align-items: center; /* 垂直居中对齐 */
|
142 |
+
gap: 20px; /* 设置图片之间的间距 */
|
143 |
+
margin: 20px;
|
144 |
+
}
|
145 |
+
|
146 |
+
/* 图片样式 */
|
147 |
+
.image-container img {
|
148 |
+
max-width: 45%; /* 每张图片占容器宽度的 45% */
|
149 |
+
height: auto; /* 保持图片比例 */
|
150 |
+
border: 1px solid #ccc; /* 添加边框 */
|
151 |
+
border-radius: 8px; /* 圆角效果 */
|
152 |
+
}
|
153 |
+
|
154 |
+
/* 标题样式 */
|
155 |
+
.image-container figcaption {
|
156 |
+
text-align: center; /* 标题居中 */
|
157 |
+
font-size: 16px; /* 字体大小 */
|
158 |
+
margin-top: 10px; /* 标题与图片之间的间距 */
|
159 |
+
color: #333; /* 文字颜色 */
|
160 |
+
}
|