修改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" />
相關文章
相關標籤/搜索