} else {
var height = $(".carousel").find(".active>img").css("height");
console.log(height);
$(".carousel").css("height",height);
$(".carousel").find(".item").css("height",height);
}
});
var height = $(".carousel").find(".active>img").css("height");
console.log(height);
$(".carousel").css("height",height);
$(".carousel").find(".item").css("height",height);
}
});
2017-03-30
这样写
<script type="text/javascript">
$(window).resize(function () {
var windowWidth = $(window).width();
if(windowWidth>800){
$(".carousel").css("height","500px");
$(".carousel").find(".item").css("height","500px");
} else {
<script type="text/javascript">
$(window).resize(function () {
var windowWidth = $(window).width();
if(windowWidth>800){
$(".carousel").css("height","500px");
$(".carousel").find(".item").css("height","500px");
} else {
2017-03-30
导航栏缩小后点那个按钮link出不来啊,求大神指点
<script src="js/jquery-3.2.0.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
最后我引得这两个js文件
<script src="js/jquery-3.2.0.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
最后我引得这两个js文件
2017-03-29