模板:Index2026/Welcome/style.css
来自EaseCation Wiki
更多操作
.wel-container {
display: flex;
gap: 10px;
width: 100%;
box-sizing: border-box;
margin-top: 10px;
height: auto;
align-items: stretch; /* 新增:等高关键属性 */
}
.wel-1 {
background-color: rgba(250, 254, 0, 0.1);
backdrop-filter: blur(10px);
flex: 1;
border-radius: 10px;
padding: 15px;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.05);
display: flex; /* 新增 */
flex-direction: column; /* 新增 */
}
.wel-2 {
background-color: rgba(72, 255, 0, 0.1);
backdrop-filter: blur(10px);
flex: 1;
border-radius: 10px;
padding: 15px;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.05);
display: flex; /* 新增 */
flex-direction: column; /* 新增 */
}
.wel-title {
font-weight: bold;
margin-bottom: 10px;
font-size: 1.2em;
}
.wel-text {
font-size: 15px;
flex: 1; /* 新增:让文本区域填充剩余空间 */
}
@media (max-width: 768px) {
.wel-container {
flex-direction: column;
height: auto;
}
/* 修正类名:与上面的wel-1、wel-2保持一致 */
.wel-1, .wel-2 {
min-height: 180px;
}
/* 修正类名:与上面的wel-title保持一致 */
.wel-title {
font-weight: bold;
margin-bottom: 10px;
font-size: 16px;
}
}