<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<style>
@media only screen and (max-width:1280px){
h1{
color: pink;
}
}
@media only screen and (min-width:1281px) and (max-width:1366px){
h1{
color:red;
}
}
@media only screen and (min-width:1367px) and (max-width:1440px){
h1{
color:yellow;
}
}
@media only screen and (min-width:1441px) {
h1{
color:green;
}
}
</style>
<body>
<h1>媒体查询测试</h1>
</body>
</html>