首页 > 代码库 > bootstrap30-辅助类展示不同的背景颜色

bootstrap30-辅助类展示不同的背景颜色

<!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>


本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1895750

bootstrap30-辅助类展示不同的背景颜色