|
|
@@ -19,85 +19,58 @@ ion-segment-content:nth-of-type(3) {
|
|
|
flex-wrap: wrap; /* 允许换行 */
|
|
|
gap: 20px; /* 图片间距,可以根据需要调整 */
|
|
|
}
|
|
|
-
|
|
|
-/* 每个图片项的样式 */
|
|
|
.image-wrapper {
|
|
|
- display: flex; /* 使用flexbox布局 */
|
|
|
- flex-direction: column; /* 垂直排列子元素 */
|
|
|
- height: auto; /* 高度自适应 */
|
|
|
- width: calc(50% - 10px); /* 每个图片占容器的50%宽度,减去间距 */
|
|
|
- box-sizing: border-box; /* 确保宽度计算不包括padding */
|
|
|
- position: relative; /* 方便调整按钮位置 */
|
|
|
+ width: 100%; /* 每列宽度为50%,减去间距 */
|
|
|
+ margin: 5px; /* 设置间距 */
|
|
|
+ box-sizing: border-box; /* 包括内边距和边框在内的宽度计算 */
|
|
|
+ display: flex; /* 使用Flexbox布局 */
|
|
|
+ flex-direction: column; /* 垂直方向排列内容 */
|
|
|
+ align-items: center; /* 水平居中对齐内容 */
|
|
|
+
|
|
|
+ border-radius: 10px; /* 添加圆角效果 */
|
|
|
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 添加阴影 */
|
|
|
}
|
|
|
|
|
|
-/* 图片的样式 */
|
|
|
.image-wrapper img {
|
|
|
- width: 100%; /* 图片宽度100%,以适应容器 */
|
|
|
- height: auto; /* 保持图片比例 */
|
|
|
+ width: 100%; /* 图片宽度100% */
|
|
|
+ height: auto; /* 高度自动,根据宽度保持比例 */
|
|
|
}
|
|
|
|
|
|
-/* 描述盒子的样式 */
|
|
|
.description-box {
|
|
|
- background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
|
|
|
- padding: 10px; /* 内边距 */
|
|
|
- border-radius: 5px; /* 圆角 */
|
|
|
- margin-top: auto; /* 自动上边距,使其总是在父盒子底部 */
|
|
|
- text-align: center; /* 文字居中 */
|
|
|
- font-size: 12px; /* 文字大小 */
|
|
|
- border: 1px solid #ccc; /* 添加边界,颜色为浅灰色 */
|
|
|
+ width: 100%; /* 每列宽度为50%,减去间距 */
|
|
|
+ text-align: center; /* 中心对齐文本 */
|
|
|
}
|
|
|
|
|
|
-/* 按钮的样式 */
|
|
|
-.transparent-button {
|
|
|
- position: absolute; /* 定位按钮 */
|
|
|
- bottom: 40px; /* 距离底部40px,确保在描述盒子上方 */
|
|
|
- left: 50%; /* 水平居中 */
|
|
|
- transform: translateX(-50%); /* 精确居中 */
|
|
|
- background-color: rgba(255, 255, 255, 0.5); /* 半透明背景 */
|
|
|
- padding: 10px; /* 按钮内边距 */
|
|
|
- text-decoration: none; /* 移除下划线 */
|
|
|
- color: black; /* 按钮文字颜色 */
|
|
|
- border-radius: 5px; /* 圆角 */
|
|
|
- font-size: 14px; /* 文字大小 */
|
|
|
- text-align: center; /* 文字居中 */
|
|
|
+/* 容器样式 */
|
|
|
+.container {
|
|
|
+ display: flex; /* 使用Flexbox布局 */
|
|
|
+ flex-wrap: wrap; /* 允许换行 */
|
|
|
+ justify-content: space-between; /* 在主轴上均匀分配空间 */
|
|
|
}
|
|
|
|
|
|
-.transparent-button:hover {
|
|
|
- background-color: rgba(255, 255, 255, 0.8); /* 悬停时加深背景色 */
|
|
|
+.text1 {
|
|
|
+ overflow: hidden; /* 隐藏超出部分 */
|
|
|
+ white-space: nowrap; /* 不换行 */
|
|
|
+ text-overflow: ellipsis; /* 使用省略号表示超出部分 */
|
|
|
+ max-width: 100%; /* 最大宽度为100% */
|
|
|
+ font-size: 14px; /* 字体大小 */
|
|
|
+ margin: 0; /* 去掉默认外边距 */
|
|
|
+}
|
|
|
+.text2 {
|
|
|
+ width: 90%; /* 每列宽度为50%,减去间距 */
|
|
|
+ overflow: hidden; /* 隐藏超出部分 */
|
|
|
+ white-space: nowrap; /* 不换行 */
|
|
|
+ text-overflow: ellipsis; /* 使用省略号表示超出部分 */
|
|
|
+ max-width: 100%; /* 最大宽度为100% */
|
|
|
+ font-size: 14px; /* 字体大小 */
|
|
|
+ margin: 0 auto; /* 去掉默认外边距 */
|
|
|
}
|
|
|
-// .bg-color {
|
|
|
-// --background: #f4f4f4; /* 设置背景颜色 */
|
|
|
-// }
|
|
|
-// ion-button {
|
|
|
-// --background: white; /* 设置背景颜色 */
|
|
|
-// --color: #888;
|
|
|
-// --border-radius: 8px; /* 按钮圆角 */
|
|
|
-// font-weight: bold; /* 加粗按钮文本 */
|
|
|
-// height: 40px; /* 按钮高度 */
|
|
|
-// width: auto;
|
|
|
-// float: right;
|
|
|
-// font-size: 16px; /* 设置按钮字体大小 */
|
|
|
-// }
|
|
|
-
|
|
|
-// ion-toolbar {
|
|
|
-// overflow: auto; /* 确保父容器能够包裹浮动元素 */
|
|
|
-// }
|
|
|
-// ion-button:active {
|
|
|
-// --background: #0056b3; /* 按钮按下时的背景颜色 */
|
|
|
-// --color: white; /* 按钮按下时的文本颜色 */
|
|
|
-// }
|
|
|
-
|
|
|
-// ion-img {
|
|
|
-// border-radius: 10px; /* 设置圆角 */
|
|
|
-// margin: 5px; /* 添加间距 */
|
|
|
-// width: 100%; /* 确保图片宽度为100% */
|
|
|
-// height: auto; /* 自适应高度 */
|
|
|
-// }
|
|
|
-
|
|
|
-// ion-card-title {
|
|
|
-// font-size: 24px; /* 设置标题字体大小 */
|
|
|
-// font-weight: bold; /* 设置标题字体加粗 */
|
|
|
-// align-items: center; /* 垂直居中 */
|
|
|
-// }
|
|
|
|
|
|
+.text1 {
|
|
|
+ font-weight: bold; /* 加粗文本 */
|
|
|
+}
|
|
|
|
|
|
+.text2 {
|
|
|
+ font-size: 12px; /* 可根据需要调整字体大小 */
|
|
|
+ color: #666; /* 设置颜色 */
|
|
|
+}
|