84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
There is still a cursor when clicking input in iosNormal on AndroidThis way ios will be normal too
这个问题之前我也遇到过,ios浏览器和ie9已下(包括ie9)浏览器都有input设置readonly之后input还有聚焦的问题。 解决的方法有两种,一种是直接设置input的disabled属性。不过这样设置会使input的事件失效。 另一种方法就是input聚焦时马上让它失去焦点,这样可以规避光标显示了。 $('input[readonly]').on('focus', function() { $(this).trigger('blur'); });