背景图片适应屏幕百分百

<!DOCTYPE html>
<html>
	<head>
	 	<meta charset="utf-8">
	 	<meta name="viewport" content="width=device-width, initial-scale=1" />
	 	<title>背景图片大小</title> 
 	</head>
 	<style>
 	body{
 		margin: 0;
 	}
	html, body {
	    height: 100%;
	    width: 100%;
	    margin: 0;
	    padding: 0;
	    overflow: hidden;
	    background-size: 100% 100%;
	    background-image: url("./1.png");

	}
 	</style>
 	<body>
 	 	
 	</body>
 </html>

  

posted @ 2015-12-15 18:12  浅痕zlx  阅读(1226)  评论(0编辑  收藏  举报