首页 > Web开发 > 详细

H5 WEB重置样式

时间:2016-01-27 10:41:39      阅读:243      评论:0      收藏:0      [点我收藏+]

H5

@charset "utf-8";
*{padding:0;margin:0;}
html {
    font-size: 100px;
    height: 100%;
    color: #333;
    font-family:"Helvetica Neue", SimHei, sans-serif;
    /*-webkit-backface-visibility: hidden;*/
   
-webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;   /* 禁止选中文本(如无文本选中需求,此为必选项) */
   
user-select: none;

}
body {
    position: relative;
    width: 100%;
    min-height: 100%;
    font-size: 0.15rem;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover,a:active,a:focus {
    color: #18b5ec;
    text-decoration: none;
}
a, img {
    -webkit-touch-callout: none; /* 禁止长按链接与图片弹出菜单 */
}
a,input{
    -webkit-tap-highlight-color:rgba(0,0,0,0);/*ios android去除自带阴影的样式*/
}
input {
    /* android 下聚焦后, 移除边框 */
   
-webkit-user-modify: read-write-plaintext-only;
    -webkit-appearance: none;/*清除按钮默认样式*/
   
border: 0;/*去除边框*/
   
outline: none;/*去除点击边框*/
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}
ul,ol,li {list-style-type:none;}
 

H5 WEB重置样式

原文:http://www.cnblogs.com/hufeicnblogs/p/5162255.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!