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;
}

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0