当我向下滚动到选项卡并选择其中一个选项卡时,我的页面末尾有选项卡,它会将我带到页面顶部,选项卡工作正常,但我想在单击时留在页面的同一部分我不想每次都上到顶部的选项卡。这是我的 jquery 选项卡代码:
<div id="wrapper">
<ul class="tabs">
<li id="fixtures_tab"><a href="#fixtures"><?php echo ALL;?></a></li>
<li id="live_tab"><a href="#live"><?php echo LIVE;?></a></li>
<li id="finished_tab"><a href="#finished"><?php echo FINISHED;?></a></li>
<li id="program_tab"><a href="#program"><?php echo PROGRAM;?></a></li>
<li id="postpond_tab"><a href="#postpond"><?php echo POSTPOND;?></a></li>
<li id="selected_tab"><a onclick="stripe_Color();" id='f' href="#fav"><?php echo SELECTED;?> (0)</a></li>
</ul>
<div class="tab-container">
<div id="fixtures" class="tab-content">
<script type="text/javascript">get_All_Today_Matches();</script>
</div>
<div id="live" class="tab-content"><script type="text/javascript"></script></div>
<div id="finished" class="tab-content"><script type="text/javascript"></script></div>
<div id="program" class="tab-content"><script type="text/javascript"></script></div>
<div id="postpond" class="tab-content"><script type="text/javascript"></script></div>
<div id="fav" class="tab-content"><script type="text/javascript"></script></div>
</div>