<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
body {
padding: 0;
margin: 0;
overflow-x: hidden;
background: url(ss.jpg) center no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<script src="Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(function () {
function resizeBody() {
$("body").height($(window).height() - 2).width($(window).width() - 2);
}
resizeBody();
$(window).resize(function () {
resizeBody();
});
});
</script>
</body>
</html>
背景图片拉伸效果(转)
最新推荐文章于 2021-09-01 08:54:31 发布