我猜标题已经说明了一切。我的一个Web应用程序在iPhone、iPod或iPad上查看时,输入提交按钮有圆角。是否有办法停止这种情况?
我猜标题已经说明了一切。我的一个Web应用程序在iPhone、iPod或iPad上查看时,输入提交按钮有圆角。是否有办法停止这种情况?
If you add...
input, textarea {
-webkit-appearance: none;
border-radius: 0;
}
那么您的按钮将继承您为其他浏览器应用的任何 CSS 样式。
对我来说没有用,-webkit-appearance:none。
这个可以:
input[type=submit] {
-webkit-border-radius:0px;
}
我在iPhone上的一个带有背景图片的按钮上遇到了同样的圆角问题。
我发现在iPad 2上你需要使用以下代码:
-webkit-appearance:none;
border-radius: 0;
我有一个带有input submit type="image"的网站。以下变化修复了圆角:
input[type=image] {
-webkit-border-radius:0px;
}
我通过为“button”和“submit”类型添加代码来解决了问题:
input[type="submit"] {
text-align: center;
-webkit-appearance:none;
-webkit-border-radius:0px;
border-radius:0;
height:30px;
}
input[type="button"] {
text-align: center;
-webkit-appearance:none;
-webkit-border-radius:0px;
border-radius:0;
height:30px;
}
background: linear-gradient(color1, color2)
可以消除苹果设备上过度圆角的问题,并且在我尝试的所有其他浏览器/平台上都有效。
-webkit-border-radius:0px
解决方案确实有效。 - coredumperrorfont-size
和color
)变得挑剔。最好的解决方案是同时应用两者。 - methodofaction