iPad - 让 Safari 中的按钮更容易点击?
使用iPad,IOS5,有没有办法让浏览器中的按钮更容易点击?我有一个使用 html 5 的网站,我注意到有时必须多次单击按钮才能让 jquery 读取单击事件。这是我使用的按钮的 html:
<button class="button purple">SEARCH</button>
Jquery:
$('.button.purple').click(function() {
//Code goes here
});
Using an iPad, IOS5, is there anyway to make a button more clickable in the browser? I have a website using html 5 and I noticed that I sometimes have to click a button multiple times for the jquery to read the click event. Here is the html for a button I use:
<button class="button purple">SEARCH</button>
Jquery:
$('.button.purple').click(function() {
//Code goes here
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果该页面上有多个点击事件,您可能需要尝试
event.preventDefault();
If there are multiple click events on that page, you might want to try
event.preventDefault();