根据media screen 加载css
- 作者: 地下群租房隔音差
- 来源: 51数据库
- 2022-08-15
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="59.css" media="screen and (max-width:800px)">
<link rel="stylesheet" href="60.css" media="screen and (min-width:800px)">
<style>
/*
@media screen and (max-width:800px){
.demo{
background: red;
}
}
@media screen and (min-width:800px){
.demo{
background: grey;
}
}
*/
</style>
</head>
<body>
<div class="demo">
1213121331
</div>
</body>
</html>
推荐阅读
