<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!--要求当前页面使用IE浏览器最高版本的内核进行渲染-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--视口标签-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--解决IE9一下浏览器对html5和css3兼容的问题-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<!--
[if it IE9]
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist.html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/re"></script>
-->
<title></title>
<style type="text/css">
[class^="col"]{
border: 1px solid red;
}
*{
margin: 0px;
padding: 0px;
}
ul{
list-style: none;
}
.dh{
background-color: #eee;
}
li:hover{
background-color: #fff;
}
.col-sm-12{
text-align: center;
font-size: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
</div>
<div class="row">
<div class="col-md-8">col-md-8</div>
<div class="col-md-4">col-md-4</div>
</div>
<div class="row">
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
</div>
<div class="row">
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
</div>
<ul class="row dh">
<li class="col-md-3 col-sm-12">首页</li>
<li class="col-md-3 col-sm-12">新闻资讯</li>
<li class="col-md-3 col-sm-12">关于我们</li>
<li class="col-md-3 col-sm-12">客户服务</li>
</ul>
</div>
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<!--要求当前页面使用IE浏览器最高版本的内核进行渲染-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--视口标签-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--解决IE9一下浏览器对html5和css3兼容的问题-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<!--
[if it IE9]
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist.html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/re"></script>
-->
<title></title>
<style type="text/css">
[class^="col"]{
border: 1px solid red;
}
*{
margin: 0px;
padding: 0px;
}
ul{
list-style: none;
}
.dh{
background-color: #eee;
}
li:hover{
background-color: #fff;
}
.col-sm-12{
text-align: center;
font-size: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
<div class="col-md-1">col-md-1</div>
</div>
<div class="row">
<div class="col-md-8">col-md-8</div>
<div class="col-md-4">col-md-4</div>
</div>
<div class="row">
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
</div>
<div class="row">
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
<div class="col-md-3 col-xs-12 col-sm-6">col-md-4</div>
</div>
<ul class="row dh">
<li class="col-md-3 col-sm-12">首页</li>
<li class="col-md-3 col-sm-12">新闻资讯</li>
<li class="col-md-3 col-sm-12">关于我们</li>
<li class="col-md-3 col-sm-12">客户服务</li>
</ul>
</div>
</body>
</html>