base.css

基础的css样式

*,
*::before,
*::after {
  box-sizing: border-box;
}


html,body{
  height: 100%;
  width: 100%;
}
body{
  margin: 0;
  line-height: 1.5;
  font-family:"微软雅黑","黑体","宋体";
}

/*语义化标签*/
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}

div,
h1, h2, h3, h4, h5, h6,
ul, ol, dl, li, dt, dd,
p,
blockquote,
pre,
form,
fieldset,
table, th, td,
input,
button,
optgroup,
textarea,
fieldset{
  margin: 0;
  padding: 0;
}

li{
  list-style: none;
}

/* correct font weight in Chrome, Edge, and Safari. */
b,
strong {
  font-weight: bolder;
}
/*
 * IE 10 激活转态有背景色
 * 去掉默认的下划线
 */
a{
  text-decoration: none;
  background-color: transparent;
  color: #000;
}
/* IE 10 下img有border */
img {
  border-style: none;
}
table {
  border-collapse: collapse;
  table-layout: fixed; // 我一般会加这个,使得table里的td可以控制宽度
}

/* form 表单元素 */
input{
  margin: 0;
  padding: 0;
  outline: none;
}
input::-webkit-input-placeholder{
  color: #ccc;
}
input::-ms-input-placeholder{
  color: #ccc;
}
input::-moz-placeholder{
  color: #ccc;
}
input[type=submit],input[type=button]{
  cursor: pointer;
}
button[disabled], input[disabled] {
  cursor: default;
}
button{
  outline: none;
  border: none;
  background-color: transparent;
}

/*浮动相关*/
.fl {
  float: left !important;
}
.fr {
  float: right !important;
}
.fn {
  float: none !important;
}
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值