ZJCF_miniProgram/pages/main/main.wxss

49 lines
969 B
Plaintext
Raw Normal View History

2024-12-07 10:20:50 +08:00
/* pages/main/main.wxss */
swiper{
height: 60vmin;
}
.swiper_image{
width: 100%;
}
.cont {
display: flex;
justify-content: center;
align-items: center;
padding: 20px; /* 可根据需要调整内边距 */
box-sizing: border-box;
}
.card {
width: 90vmin;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
background-color: #fff; /* 背景颜色 */
}
.image {
width: 100%;
height: 25vh;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.info {
padding: 10px;
display: flex;
flex-flow: column;
}
.name {
font-size: 18px;
color: #333;
margin-bottom: 5px; /* 为名称和日期之间添加一些间距 */
white-space: nowrap; /* 防止名称换行 */
overflow: hidden; /* 隐藏溢出的文本 */
text-overflow: ellipsis; /* 显示省略号 */
}
.date {
font-size: 14px;
color: #666;
}