Files
ClassContent/历届学生/吴欣阳/每天课程/2021-06-01/media.html
2024-09-27 02:06:13 +08:00

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>