<html>
<head>
<title>div 分辨率自适应</title>
<style type="text/css">
html,body{height:100%; width:100%; overflow:hidden; margin:0; padding:0;}
.main{width:100%; height:100%; overflow:hidden; margin:0; padding:0;}
.a1{position:absolute;width:80%; height:100px; color:#fff; background-color:#369; text-align:center;}
.a2{position:absolute;width:20%; height:100%; color:#fff; background-color:#FF0000; text-align:center;left:80%;}
</style>
</head>
<body>
<div class="a1">div1</div>
<div class="main">
<div class="a2">div2</div>
</div>
</body>
</html>
HTML分辨率自适应
最新推荐文章于 2021-06-09 18:32:28 发布