JavaScript-背景图片自适应手机尺寸

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>背景图片自适应手机尺寸</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes” />
<style type=”text/css”>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<div id=”Background” style=”position:absolute; width:100%; height:100%; z-index:-1″>
<img src=”bj.jpg” height=”100%” width=”100%”/>
</div>
</body>
</html>
-----------------------------------------------------------------------------

上一篇:KUBERNETES02_集群安装逻辑、前置环境、搭建一主两从、部署dashboard访问页面(二)


下一篇:全新Linux+Python高端运维班第一次作业