67 lines
1.3 KiB
HTML
67 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>media</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.center div {
|
|
float: left;
|
|
height: 100%;
|
|
}
|
|
.center {
|
|
overflow: hidden;
|
|
width: 1200px;
|
|
margin: 0 auto;
|
|
height: 600px;
|
|
}
|
|
.left {
|
|
width: 200px;
|
|
background: red;
|
|
}
|
|
.content {
|
|
width: 800px;
|
|
background: #000;
|
|
}
|
|
.right {
|
|
width: 200px;
|
|
background: blue;
|
|
}
|
|
|
|
@media screen and (max-width: 900px) {
|
|
.right {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 650px) {
|
|
.right {
|
|
display: none;
|
|
}
|
|
.left {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
<div class="center">
|
|
<div class="left"></div>
|
|
<div class="content"></div>
|
|
<div class="right"></div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |