DINAMIC.HTML
637 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>1</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<style media="screen">
@media (max-width: 1800px) {
div.div1{
background-color: black;
}
}
@media (max-width: 768px) {
div.div1{
background-color: green;
}
}
@media (min-width:1801px) {
div.div1{
background-color: gray;
}
}
</style>
</head>
<body>
<div class="div1">
border:1px solid gray;
</div>
</body>
</html>