0
我正在使用以下JS来使我的引导程序v3导航在悬停时展开。Bootstrap手机下拉母链接问题
我已经这样做了,以便父链接可以成为一个链接。
<script type="text/javascript">
jQuery(function($) {
$('.navbar .dropdown').hover(function() {
$(this).find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
}, function() {
$(this).find('.dropdown-menu').first().stop(true, true).delay(100).slideUp();
});
$('.navbar .dropdown > a').click(function(){
location.href = this.href;
});
});
</script>
我在手机上的一个问题,虽然,在这里单击父链接,你暂时一瞬间看到了孩子们的链接 - 但你直奔父链接......让你不有能力选择父母下面的孩子链接。
网站:http://crawfordtech.fastnetstaging.co.uk
有问题的父链接被称为 “解决方案”。
任何想法可以做什么?
现在你知道为什么bootstrap不使用悬停事件。如果您希望它在移动设备上运行良好,则必须将父链接移至子元素。 – Blazemonger
我以为可能会有某种双击手机的JS:( – user991830
我想你可以,但是如果你这样做的话,这是一个令人困惑的设计,最好使用子元素 – Blazemonger