<script>
$(document).ready(function(){
$("#demo-navbar").find(".dropdown-menu a ".click(function(){
var href = $(this).attr("href");
$("#tab-list").find("a[href = '" + href + "']").tab(show());
}));
});
</script>
$(document).ready(function(){
$("#demo-navbar").find(".dropdown-menu a ".click(function(){
var href = $(this).attr("href");
$("#tab-list").find("a[href = '" + href + "']").tab(show());
}));
});
</script>
2017-11-25
最赞回答 / qq_风迷离了眼_0
button标签里面的data-toggle属性拼写错了,改成data-toggle="collapse",代码如下:<!doctype html><html><head><!-- Required meta tags --><meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no...
2017-11-16
<div class="container">
<h1 class="text-center">大标题</h1>
<button class="btn center-block">点我一下吧</button>
</div>
<h1 class="text-center">大标题</h1>
<button class="btn center-block">点我一下吧</button>
</div>
<div class="text-center">
<h1 >Hello World!</h1>
<button type="button" class=" btn btn-primary">我是按钮,按我一下</button>
</div>
<!--第二种-->
<h1 class="text-center">Hello World!</h1>
<button type="button" class=" center-block btn btn-primary">我是按钮,按我一下</button>
<h1 >Hello World!</h1>
<button type="button" class=" btn btn-primary">我是按钮,按我一下</button>
</div>
<!--第二种-->
<h1 class="text-center">Hello World!</h1>
<button type="button" class=" center-block btn btn-primary">我是按钮,按我一下</button>
把<script src="jquery-1.12.0.min.js"></script>放在你写的js前面
2017-11-03
最新回答 / 小小小孟
eclipse中web项目中总有红叉叉显示js文件中有错误项目的properties>builder>JavaScriptVaidator,1、首先在problem>errors中删除所有js错误: 2、然后再勾选掉javascript Validator:3、clean下项目
2017-10-30