修改iphone自带的按钮样式

1、iphone自带的样式会替换自定义的css样式,只要只要在样式里面加一句去掉css去掉iPhone、iPad的默认按钮样式就可以了!~

input[type="button"], input[type="submit"], input[type="reset"] {

-webkit-appearance: none;

}

textarea {  -webkit-appearance: none;}  

  

2、去掉浏览器中autocomplete带来的黄色背景

如图

input:-webkit-autofill { 
	-webkit-box-shadow: 0 0 0px 1000px white inset; 
}

 

3、修改浏览器自带的scrollbar样式

::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-button:vertical{display:none}
::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background-color:#e2e2e2}
::-webkit-scrollbar-thumb{border-radius:0;background-color:rgba(0,0,0,.3)}
::-webkit-scrollbar-thumb:vertical:hover{background-color:rgba(0,0,0,.35)}
::-webkit-scrollbar-thumb:vertical:active{background-color:rgba(0,0,0,.38)}

4、修改IPhone下数字自动加下划线的问题

在开发iphone应用程序的时候,safari下手机号码默认是有下划线的,通过下面的方法就可以去掉:

<meta name="format-detection" content="telephone=no" />
posted @ 2017-03-24 14:07  半瓶子水  阅读(2179)  评论(0编辑  收藏  举报