在这个 examle.html,掉js可以实现效果 ,在实际的工作的index.php中,js 中document.getElementById(sectionId)就为null了
<div id="content">放在一个table中 <div class="section" id="jay"> 放在另外一个table中
example.html
<BODY>
<div id="content">
<h1>About the band</h1>
<ul id="internalnav">
<li><a href="#jay">热门游戏</a></li>
<li><a href="#domsters">新游戏</a></li>
</ul>
</div>
<div class="section" id="jay">
<td>游戏|游戏2|游戏|游戏2|游戏|游戏2|游戏|游戏2游戏|游戏2|游戏|游戏2|游戏|游戏2|游戏|游戏2|<td>
</div>
<div class="section" id="domsters">
<td>游戏|游戏2|游戏|游戏2|游戏|游戏2游戏|游戏2|游戏|游戏2|游戏|游戏2|游戏|游戏2|<td>
</div> </BODY>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货