CSS公共清除浏览器默认样式
生活随笔
收集整理的這篇文章主要介紹了
CSS公共清除浏览器默认样式
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
/*Vue隱藏*/
[v-cloak] {display: none;
}
/*清除樣式*/body, ol, ul, dl, li, dt, dd, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, fieldset, legend, input, textarea,select{margin: 0;padding: 0;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block
}html, body {height: 100%;
}html {position: relative;margin: 0 auto;max-width: 750px;min-width: 300px;font-size: 62.5%;
}body {position: relative;font-size: 14px;font-family: Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;background: #fff;color: #282828;-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: transparent;
}h1, h2, h3, h4, h5 {font-weight: normal;font-size: 14px;
}a {color: #333;text-decoration: none;transition: color .2s ease-out;
}a:hover {text-decoration: none;
}em, i {font-style: normal;
}ol, ul, dl, li, dt, dd {list-style: none
}img {border: 0;vertical-align: middle
}.boxShadow{box-shadow: 0 0 .18rem 0 rgba(0,0,0,0.1);
}a img {border: 0
}table {border-collapse: collapse;border-spacing: 0
}
input, textarea {font-family: Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;outline: none;
}input, textarea {-webkit-appearance: none;border-radius: 0;-webkit-border-radius: 0;-moz-border-radius: 0;outline: none;padding: 0px;margin: 0;
}
/*透明度漸變*/
.opacity{-webkit-animation: opacity 0.3s linear;animation: opacity 0.3s linear;
}
@-webkit-keyframes opacity {0% {opacity:0;}100% {opacity:1;}
}
@keyframes opacity {0% {opacity:0;}100% {opacity:1;}
}
/*清除浮動(dòng)*/
.clearfloat{zoom:1
}
.clearfloat:after{display:block;clear:both;content:"";visibility:hidden;height:0
}
/*居中*/
.center{margin: 0 auto}
?
轉(zhuǎn)載于:https://www.cnblogs.com/AttackLion/p/8492309.html
總結(jié)
以上是生活随笔為你收集整理的CSS公共清除浏览器默认样式的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 二叉树的线索化
- 下一篇: 2017年html5行业报告,云适配发布