为了账号安全,请及时绑定邮箱和手机立即绑定

css reset 为了解决不同浏览器对不同标签的margin和padding默认值不一样

标签:
Html/CSS
我不会告诉你来源自bootstrap框架里面的css

html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%
}

body {
margin: 0
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block
}

audio, canvas, progress, video {
display: inline-block;
vertical-align: baseline
}

audio:not([controls]) {
display: none;
height: 0
}

[hidden], template {
display: none
}

a {
background-color: transparent
}

a:active, a:hover {
outline: 0
}

abbr[title] {
border-bottom: 1px dotted
}

b, strong {
font-weight: 700
}

dfn {
font-style: italic
}

h1 {
margin: .67em 0;
font-size: 2em
}

mark {
color: #000;
background: #ff0
}

small {
font-size: 80%
}

sub, sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline
}

sup {
top: -.5em
}

sub {
bottom: -.25em
}

img {
border: 0
}

svg:not(:root) {
overflow: hidden
}

figure {
margin: 1em 40px
}

hr {
height: 0;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box
}

pre {
overflow: auto
}

code, kbd, pre, samp {
font-family: monospace, monospace;
font-size: 1em
}

button, input, optgroup, select, textarea {
margin: 0;
font: inherit;
color: inherit
}

button {
overflow: visible
}

button, select {
text-transform: none
}

button, html input[type=button], input[type=reset], input[type=submit] {
-webkit-appearance: button;
cursor: pointer
}

button[disabled], html input[disabled] {
cursor: default
}

button::-moz-focus-inner, input::-moz-focus-inner {
padding: 0;
border: 0
}

input {
line-height: normal
}

input[type=checkbox], input[type=radio] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
height: auto
}

input[type=search] {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield
}

input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
-webkit-appearance: none
}

fieldset {
padding: .35em .625em .75em;
margin: 0 2px;
border: 1px solid silver
}

legend {
padding: 0;
border: 0
}

textarea {
overflow: auto
}

optgroup {
font-weight: 700
}

table {
border-spacing: 0;
border-collapse: collapse
}

td, th {
padding: 0
}

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
Web前端工程师
手记
粉丝
8
获赞与收藏
131

关注作者,订阅最新文章

阅读免费教程

  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消