1、改变input鼠标颜色
#兼容手机端
caret-color:#ffffff
#只pc端起作用
color:#fffff
2、内容滚动卡顿
#可以获得原始一样的感觉,缺失是不能自定义滑动条
-webkit-overflow-scrolling: touch;
3、给返回顶部的a标签添加href="#",实现非js滚动回顶部动画
html,body{ scroll-behavior: smooth; }
4、textarea禁止缩放
resize:none;
5、移动端禁止长按下载图片
img { pointer-events: none;}
css:
https://www.shejidaren.com/100-powerful-css-and-js-demo.html
https://codepen.io/alphardex/pen/mdVowQy
https://codepen.io/alphardex/pen/ExKbmZz