案例:Bootstrap案例     状态:可编辑再运行    进入横版
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <meta charset="utf-8"> 
5
    <title>W3xue教程(w3xue.com)</title> 
6
    <link rel="stylesheet" href="/css/bootstrap/bootstrap3.3.7.min.css">  
7
    <script src="/js/bootstrap/jquery.min.js"></script>
8
    <script src="/js/bootstrap/bootstrap3.3.7.min.js"></script>
9
</head>
10
<body>
11
    
12
<div class="container">
13
    <h2>图片</h2>
14
    <p> .img-responsive类让图片支持响应式,将很好地扩展到父元素 (通过改变窗口大小查看效果):</p>                  
15
    <img src="/img/eg_landscape3.jpg" class="img-responsive" alt="Cinque Terre" width="304" height="236"> 
16
</div>
17
18
</body>
19
</html>

 运行结果 
 北美留学生论坛