css常用初始化样式

页面初始化样式
*{
    font-family: 'Microsoft YaHei';
}
body {
  font-size: 14px;
	font-family: ' 微软雅黑';
	background-color:#F4F6F9;
	position: relative;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: #676767;
}
input,
button {
  list-style-type: none;
  border: 0px;
  outline: none;
}
.left{
  float: left !important;
}
.right{
  float: right !important;
}
.clearfix {
  zoom: 1;
}

.clearfix:after {
  content: '';
  width: 0;
  height: 0;
  clear: both;
  display: block;
}
table初始化样式
table,tr,td {
/*此处文字设置为打印页上主表以外的最通用的字体*/
 font-size: 14px;
 font-family: "微软雅黑";
 color: #333333;
 word-break: break-all;
 word-wrap: break-word;
 border-collapse: collapse;
}
.table {
width: 100%;
 // border: 1px solid #000000;
 background-color: #FFFFFF;
 text-align: center;
}
.table tr {
 /* height: 35px; */
}
.table td {
 font-size: 14px;
 /*最普遍的主表字体*/
 font-family: "微软雅黑";
 // border: 1px solid #000000;
padding: 10px 10px;
box-sizing: border-box;
}
滚动条自定义样式
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
.scrollbar::-webkit-scrollbar
{
    width: 10px;
    height: 10px;
    background-color: #F5F5F5;
}
/*定义滚动条轨道 内阴影+圆角*/
.scrollbar::-webkit-scrollbar-track
{
    // -webkit-box-shadow: inset 0 0 6px #ccc;
    border-radius: 10px;
    background-color: #F5F5F5;
}
/*定义滑块 内阴影+圆角*/
.scrollbar::-webkit-scrollbar-thumb
{
    border-radius: 10px;
    // -webkit-box-shadow: inset 0 0 6px blue;
    background-color: #d7d7d7;
}
超出显示省略号
.overshow{
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值