第一和第三个媒体查询的一切正常
但是当我的屏幕位于中间时:
@media only screen and (min-width: 481px) and (max-width: 600px)
它不起作用。
@media only screen and (min-width: 300px) and (max-width: 480px) {
// some css styles //
}
@media only screen and (min-width: 481px) and (max-width: 600px) {
// some css styles //
}
@media only screen and (min-width: 601px) and (max-width: 1024px) {
// some css styles //
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>New Responsive design web page</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="stylesheetTest.css" type="text/css" />
<meta name="viewport" content="width=device-width , initial-scale = 1.0" />
</head>