1. 程式人生 > >Bootstrap基礎2(圖片與輔助樣式)

Bootstrap基礎2(圖片與輔助樣式)

query doc lin utf-8 war utf initial type tex

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Bootstrap</title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery-3.2.1.js"> </script>
<script src="js/bootstrap.js"></script>
<script src="js/holder.js" ></script>
</head>
<body>
<div class="container">

<h2 class="page-header">圖片與輔助樣式</h2>
<img src="img/1.png" class="img-responsive" style="width: 400px;height: 400px">
<hr/>
<img src="img/1.png" style="width: 100px;height:100px"class="img-rounded">
<img src="img/2.png" style="width: 100px;height:100px"class="img-circle">
<img src="img/3.png" style="width: 100px;height:100px"class="img-thumbnail">
<img src="holder.js/200x200?random=yes"class="img-thumbnail">

<!--文本樣式-->
<p class="text-primary">我思故我在</p>
<p class="text-warning">心外無物</p>
<p class="text-info">人不能同時踏進同一條河流</p>
<p class="bg-info">意識不以事物的變化而轉移<button class="close">X</button></p>
<button class="btn btn-primary">更多<span class="caret"></span></button>
<span class="glyphicon glyphicon-gift" style="font-size: 30px;"></span>
</div>

</body>
</html>

Bootstrap基礎2(圖片與輔助樣式)