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" />