IE10默認在input框中輸入內容時會顯示一個'X',密碼框會顯示一個'小眼睛',怎麼把這個默認的'X'或者'小眼睛'刪除掉。
在password輸入框顯示一個「小眼睛」的按鈕,去掉他的方法以下:css
input[type="password"]::-ms-clear { display: none;} input[type="password"]::-ms-reveal { display: none;}
IOS下input[type='tel'],input[type='text']輸入框,再觸發的時候,input會有一個灰色的背景色塊,如何解決,一個很關鍵的屬性-webkit-tap-highlight-color,這個屬性只用於IOS(iPhone和iPad),能夠設置-webkit-tap-highlight-color任何顏色,想要禁用這個高亮,設置顏色的alpha值爲0便可。-webkit-tap-highlight-color:transparent;
input,textarea,input:focus, textarea:focus{ outline: none; -webkit-tap-highlight-color: transparent; -webkit-user-modify: read-write-plaintext-only; }