starwait/assets/css/style.css
2025-04-25 18:02:03 +08:00

54 lines
976 B
CSS

html, body {
position: relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
font-size: 16px;
}
a {
/*去除默认下划线*/
text-decoration: none;
/*设置初始颜色*/
color: #333;
/*统一内边距和外边距*/
margin: 0;
padding: 0;
/*去除默认的点击高亮*/
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
/*处理不同状态的样式*/
:link {
color: #333;
}
:visited {
color: #333;
}
:hover {
color: #333;
}
:active {
color: #333;
}
}
/*单行唱出隐藏显示省略号*/
.oneLineOverMore{
white-space: nowrap; /* 确保文本在一行内显示 */
overflow: hidden; /* 隐藏超出部分 */
text-overflow: ellipsis; /* 显示省略号 */
}
/*宽高比*/
.a11{
aspect-ratio: 1;
}
/*全居中*/
.allCenter{
display: flex;
justify-content: center;
align-items: center;
}