css问题
文章目录
1、 在IOS中图片不显示(给图片加了圆角或者img没有父级)
<div><img src=""/></div> div {width: 20px; height: 20px; border-radius: 20px; overflow: hidden;} div img {width: 100%; height: 100}2、 在IOS中圆角和隐藏公用时隐藏失效
{border-radius: 20px; overflow: hidden; transform: scale(1);} 或 {border-radius: 20px; overflow: hidden; transform: rotate(0deg);}
3、 在IOS中滚动不顺畅问题
{overflow-y: auto; -webkit-overflow-scrolling: touch;}4、 IOS点击有颜色
{ -webkit-tap-highlight-color: none;}5、 阻止旋转屏幕时自动调整字体大小
html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {
-webkit-text-size-adjust:none;
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册⭐️ Admin快速开发: https://show.cool-admin.com/
赞 0⭐️ 官方文档: https://cool-js.com
赞 0⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld
赞 0