首页 > bootstrap导航问题

bootstrap导航问题

$('#myTab a').click(function (e) {
  e.preventDefault()
  $(this).tab('show')
})

阻止了默认行为 导航超链接就失效了 我的网站是ken123.sinaapp.com


我现在把默认行为去掉了 导航的选中状态就没有了


about.php中,你要这样写:

html<li class="active">
    <a href="about.php">
        <span class="glyphicon glyphicon-stats"></span> 关于
    </a>
</li>

问题是什么?阻止了a的默认行为当然链接失效了啊

【热门文章】
【热门文章】