0
我有一个简单的切换事件,并且桌面上的一切工作正常,但是当我去电话时,我必须点击两次才能让它切换到打开状态?切换打开关闭必须在电话上点击两次
以下是我有:
$(".service-m").click(function() {
$(this).next(".serviceinfo-m").toggle()
});
<a class="service-m">
Some Text
</a>
<div class="serviceinfo-m" style="display:none;">The First Line of Text.</div>
<a class="service-m">
Some Text
</a>
<div class="serviceinfo-m" style="display:none;">The First Line of Text.</div>
<a class="service-m">
Some Text
</a>
<div class="serviceinfo-m" style="display:none;">The Second Line of Text.</div>
<a class="service-m">
Some Text
</a>
<div class="serviceinfo-m" style="display:none;">The Third Line of Text.</div>
另外这里是的jsfiddle http://jsfiddle.net/BrentRansom/tfM6E/1/
感谢
我不知道你在说什么关于,我只是导航到你用我的Galaxy-S4使用铬浏览器拨弄,它工作正常。 –
在我的iphone上它现在可以工作。不知道为什么。 – user2751645
现在还是没有? – musicnothing