链接页面到另一个id

时间:2017-11-10 08:19:22

标签: html css tabbing

我在这里有这个代码:

 <ul>
                <li class="underUl"><a class="ulA" name="History" href="about.php#History"> - History</a></li>
                <li class="underUl"><a class="ulA" name="Concept" href="about.php#Concept"> - The Concept</a></li>
                <li class="underUl"><a class="ulA" name="Choose_CST" href="about.php#Choose_CST">- Why Choose CST?</a></li>
                <li class="underUl"><a class="ulA" name="Management" href="about.php#Management">- Management</a></li>
                <li class="underUl"><a class="ulA" name="Departments" href="about.php#Departments">- Department</a></li>

            </ul>

在另一页我有这些div:

<div id="History">history</div>
<div id="Concept">concept</div>
<div id="Choose_CST">CST</div>
 <div id="Management">management</div>
  <div id="Departments">Departments</div>

所以我想打开用户选择引用<ul>标记中的ID的div?任何的想法?例如,如果用户点击管理我想自动打开管理div等其他页面...提前感谢

1 个答案:

答案 0 :(得分:0)

您编写的代码应该可以使用,但您可以尝试使用

<div id="History" name="History">history</div>
<div id="Concept" name="Concept">concept</div>
<div id="Choose_CST" name="Choose_CST">CST</div>
<div id="Management" name="Management">management</div>
<div id="Departments" name="Departments">Departments</div>