?
清除手機tap事件后 element 時候出現(xiàn)的一個高亮
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }
移動端取消touch高亮效果
.xxx {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
?
禁止長按鏈接與圖片彈出菜單
* { -webkit-touch-callout: none; }
如何禁止保存或拷貝圖像
img {
-webkit-touch-callout: none;
}
/*PS:需要注意的是,該方法只在 iOS 上有效。*/
clip屬性,截取你想要顯示的圖片
* { position: absolute;
clip: rect(0px,60px,200px,0px);
}
?
動畫的處理/開啟硬件加速/解決頁面閃白/保證動畫流暢
.css {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
?
移動端如何清除輸入框內(nèi)陰影
input,textarea {
border: 0;
-webkit-appearance: none;
}
消除transition閃屏
.css{
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
}
?
?
?