bootstrap30-輔助類展示不同的背景顏色

技術小美發表於2017-11-12

<!DOCTYPE html>

<html>

<head>

<meta charset=”utf-8″>

<title>Bootstrap 輔助類</title>

<link rel=”stylesheet” href=”http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css”>  

<style>

div{

width: 600px;

height: 300px;

}

</style>

</head>

<body>

<div class=”container”>

<div class=”bg-primary”>.bg-primary</div>

<div class=”bg-success”>.bg-success</div>

<div class=”bg-info”>.bg-info</div>

<div class=”bg-warning”>.bg-warning</div>

<div class=”bg-danger”>.bg-danger</div>

</div>

    <script src=”http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js”></script>

   <script src=”http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js”></script>

</body>

</html>

本文轉自 素顏豬 51CTO部落格,原文連結:http://blog.51cto.com/suyanzhu/1895750


相關文章