[英]How to set input type date with 100% width in jQuery Mobile
I'm developing a web application using jQuery Mobile 1.1.1 and I'm interested in using a <input type="date" />
with 100% width but there's a gap (the space where it was supposed to have the arrow is cutted) when viewing the page on iOS4. 我正在使用jQuery Mobile 1.1.1开发一个Web应用程序,我有兴趣使用宽度为100%的
<input type="date" />
但是有一个间隙 (应该有箭头的空间是在iOS4上查看页面时。
Does anyone have a solution for this issue? 有没有人有这个问题的解决方案?
A possible solution to resolve that is by adding the following CSS to overide the default browser CSS: 解决这个问题的可能解决方案是通过添加以下CSS来覆盖默认浏览器CSS:
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.