css之reset.css

本文介绍了一组CSS样式规则,用于优化网页布局与文本显示效果,包括字体大小调整、选择高亮背景、列表样式去除等,有助于提升用户体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

html{
    font-size:62.5%;
}
html,body{
    margin:0;
    padding:0;
}
::selection{
    background-color:#b3d4fc;
    text-shadow:none;
}
ul{
    margin:0;
    padding:0;
    list-style: none;
}
.text-ellipsis{
    float: left;
    font-size:1.5rem;
    overflow: hidden;
    white-space: nowrap;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
.pull-right{
    float: right;!important;
}
.pull-left{
    float: left;!important;
}
.center-block{
    display: block;
    margin:0 auto;
}
.text-right{
    text-align: right;!important;
}
.text-center{
    text-align: center;!important;
}
.text-left{
    text-align:left;!important;
}
.hide{
    display: none;!important;
}
.show{
    display: block;!important;
}
.text-hide{
    font:0/0 a;/*font-size/line-height font-family*/
    color:transparent;
    text-shadow: none;
    background-color: transparent;
    border:none;
}
.clear-fix::before,/*before为了防止上下margin叠加*/
.clear-fix::after{
    content:'';
    display: table;
}
.clear-fix::after{
    clear:both;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值