jquery为什么没执行 10
<!DOCTYPEhtml><html><head><metacharset="UTF-8"><linkrel="stylesheet"href="css/bootstr...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$("#mytab a").click(function(e){
e.preventDefault();
$(this).tab("show");
});
</script>
<title></title>
</head>
<body>
<div class="container">
<ul id="mytab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="">home</a></li>
<li role="presentation" ><a href="">about</a></li>
<li role="presentation" ><a href="">concact</a></li>
</ul>
</div>
</body>
</html> 展开
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$("#mytab a").click(function(e){
e.preventDefault();
$(this).tab("show");
});
</script>
<title></title>
</head>
<body>
<div class="container">
<ul id="mytab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="">home</a></li>
<li role="presentation" ><a href="">about</a></li>
<li role="presentation" ><a href="">concact</a></li>
</ul>
</div>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询