响应式布局

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<style media="screen">
.container{
height:150px;
background-color:pink;
margin:0 auto;
}
@media screen and (max-width:767px){
.container{
width:100%;
}
}
@media screen and (min-width:768px){
.container{
width:750px;
}
}
@media screen and (min-width:992px){
.container{
width:970px;
}
}
@media screen and (min-width:1200px){
.container{
width:1170px;
}
}
</style>
</style>
</head>
<body>
<div class="container">

</div>
</body>
</html>

响应式布局

上一篇:k8s架构详解


下一篇:Centos7安装FFmpeg