移动端样式重置

html,body{height: 100%;}

*{-webkit-box-sizing: border-box;box-sizing: border-box;outline: 0;padding: 0;margin: 0;border: 0;}

html {font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif; -webkit-text-size-adjust: 100%}

body{-webkit-overflow-scrolling: touch;}

em{font-style: normal}

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

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

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

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

a{background: transparent; text-decoration: none; -webkit-tap-highlight-color: transparent}

a:active{background: rgb(0,0,0,1);}

img{border: 0; vertical-align: middle}

body,button, input,select, textarea,h1, h2, h3, h4, h5, p, form, blockquote,ul, ol, li, dl, dd{margin: 0}

button {overflow: visible}

button, select {text-transform: none}

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

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

textarea {overflow: auto; resize: vertical}

input, textarea{outline: none;}

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

ul, ol, li, dl, dd,td, th{padding: 0}

ul, ol {list-style: none}

h1, h2, h3{font-weight: normal}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder{color: #999;}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • H5移动端知识点总结 阅读目录 移动开发基本知识点 calc基本用法 box-sizing的理解及使用 理解dis...
    Mx勇阅读 4,637评论 0 26
  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,815评论 1 92
  • 移动开发基本知识点 一.使用rem作为单位 html { font-size: 100px; } @media(m...
    横冲直撞666阅读 3,523评论 0 6
  • 上午11:00,宝贝出院回家啦,多日不见,脸蛋圆润了,但是满脸的蜡黄且湿疹大片。久久看着放在摇篮里的他,思绪万千,...
    迷茫中穿梭阅读 184评论 0 0
  • 微信小程序是什么 『微信小程序』是微信即公众号之后推出的一项服务。 我们提供了一种新的开放能力,开发者可以快速地开...
    DerekMonster阅读 5,936评论 1 1