修改iphone自带的按钮样式

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

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

-webkit-appearance: none;

}

textarea {  -webkit-appearance: none;}  

  

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

如图web

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

 

三、修改浏览器自带的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)}app

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

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

<meta name="format-detection" content="telephone=no" />
相关文章
相关标签/搜索