Responsive layout

media-queries-finish.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive layout</title>
<style>
body{background:#000;}

@media(min-width:767px) and (max-width:979px){body{background:#f00;}}
</style>
</head>
<body>
When the browser window is between 767px and 979px, the styles defined in the curly brackets are triggered
</body>
</html>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326435270&siteId=291194637