生活随笔
收集整理的這篇文章主要介紹了
重置样式表--HTML
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
重置樣式表
- 這就是一個簡單的我自己使用的重置樣式表
- 里面的話 大多數(shù)的重置是都有啦的
- 大家沒有的可以收藏起來 拿去用
html{font-size:14px
;box-sizing: border-box
;}html,body{-webkit-tap-highlight-color: rgba(0, 0, 0, 0
);-webkit-overflow-scrolling: touch
;overflow-scrolling: touch
;height: 100%
;}body{background: #fff
;font:14px,-apple-system,BlinkMacSystemFont,
'Segoe UI',
'PingFang SC',
'Hiragino Sans GB',
'Microsoft YaHei',
'Helvetica Neue',Helvetica,Arial,sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol'-webkit-font-smoothing: antialiased
;-moz-osx-font-smoothing: grayscale
;}body,p,h1,h2,h3,h4,h5,h6,dl,dd,ul,ol,th,td,button,figure,input,textarea,form,pre,blockquote,figure{margin: 0
;padding: 0
;}a{cursor: pointer
;text-decoration:none
;transition: color 0.3s ease
;}ol,ul{list-style:none
}a,h1,h2,h3,h4,h5,h6,input,select,button,textarea {font-family: inherit
;font-size: inherit
;font-weight: inherit
;font-style: inherit
;line-height: inherit
;color: inherit
;outline: none
;}button,input[type='submit'],input[type='button'] {cursor: pointer
;}input[type='number'] {-moz-appearance: textfield
;}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button {margin: 0
;-webkit-appearance: none
;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner {border-style: none
;padding: 0
;}[hidden] {display: none
;}template {display: none
;}input,textarea,button,select{border:none
;}input:focus,textarea:focus,button:focus,select:focus{outline: none
;}
總結
以上是生活随笔為你收集整理的重置样式表--HTML的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。