[代码] input框高度在ios上变形 解决方法

[复制链接]
本站网友  发表于 2022-10-21 00:26 |阅读模式

解决input框高度在ios上变形


解决方法:给input设置box-sizing:border-box;(或者content-box)
ios默认盒子模型为content-box;其它是border-box
  1. box-sizing:border-box;
复制代码


同时解决input在ios浏览器上自动变圆角
  1. -webkit-appearance: none;
  2. border-radius: 0;
复制代码

QQ|删帖注销|手机版|资源圈

GMT+8, 2024-4-26 18:13

Powered by Discuz!

© 20022-2026 Comsenz Inc.

快速回复 返回顶部 返回列表