我是网页设计和引导程序的新手..我正在尝试使用标签创建标题..并添加一个下拉菜单..代码看起来像这样..
<body>
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#1" data-toggle="tab">Home</a></li>
<li class="dropdown">
<a href="#2" class="dropdown-toogle" data-toggle="dropdown">Tentang Kami<span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action1</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action2</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action3</a></li>
</ul>
</li>
<li><a href="#3" data-toggle="tab">Contact Us</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="1">
<iframe src="pages/home.html" width="1250" height="500" frameborder="0"></iframe>
</div>
<div class="tab-pane active" id="2">
<iframe src="pages/sejarah.html" width="1250" height="500" frameborder="0"></iframe>
</div>
<div class="tab-pane active" id="3">
<iframe src="pages/contactus.html" width="1250" height="500" frameborder="0"></iframe>
</div>
<div class="tab-pane active" id="4">
<iframe src="pages/visimisi.html" width="1250" height="500" frameborder="0"></iframe>
</div>
<div class="tab-pane active" id="5">
<iframe src="pages/progstudi.html" width="1250" height="500" frameborder="0"></iframe>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".tab-pane.active").hide(); // Hide all tab conten divs by default
$(".tab-pane.active:first").show(); // Show the first div of tab content by default
});
</script>
</body>
所以,“Tentang Kami”选项卡应该由一个下拉列表表示..但是当我尝试它时,下拉列表不会显示..但是当我尝试清空里面的文本时<div class="tab-content">
,下拉列表工作..我错过了什么吗?对不起,我的英语不好