高度固定的话,把浏览器窗口缩小,不好看怎么解决啊
这样弄的话界面缩小了好奇怪啊,怎么改啊
这样弄的话界面缩小了好奇怪啊,怎么改啊
2014-11-12
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js">
</script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<style>
.carousel { height: 500px;}
.carousel .item {height: 500px;}
.carousel .item img { width: 100%; }
</style>
</head>
<body>
<div id="myCarousel" class="carousel slide">
<!-- 轮播(Carousel)指标 -->
<ol>
<li data-target="#myCarousel" data-slide-to="0"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- 轮播(Carousel)项目 -->
<div>
<div class="item active">
<img src="http://img1.sycdn.imooc.com//5412ad400001e52014280484.jpg" alt="First slide">
<div> 11 英寸 MacBook Air 充电一次可运行长达 9 小时,而 13 英寸机型则可运行长达 12 小时。1</div>
</div>
<div>
<img src="http://img1.sycdn.imooc.com//5412ad7c0001d2eb10880541.jpg" alt="Second slide">
<div>无论是什么任务,配备 Intel HD Graphics 5000 图形处理器的第四代 Intel Core 处理器都能应对自如。</div>
</div>
<div>
<img src="http://img1.sycdn.imooc.com//5412ae5c0001653b12800644.jpg" alt="Third slide">
<div>有了新一代 802.11ac 技术,MacBook Air 令 Wi-Fi 速度超越极限</div>
</div>
</div>
<!-- 轮播(Carousel)导航 -->
<br/>
<br/>
<a class="carousel-control left" href="#myCarousel"
data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="carousel-control right" href="#myCarousel"
data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</body>
</html>
举报