html盒子铺满全屏

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>html盒子铺满全屏</title>
		
	</head>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			position: absolute;
			width: 100%;
			height: 100%;
			background-color: #188eee;
		}
	</style>
	<body>
		<div class="box"></div>
	</body>
</html>

  

posted @ 2018-04-11 11:15  生如逆旅,一苇以航  阅读(731)  评论(0编辑  收藏  举报