【发布时间】:2013-09-01 09:06:29
【问题描述】:
我想将this image 作为我网页的背景图片。但是,问题在于图像没有覆盖整个页面,正如您在this preview 中看到的那样,它会在最右边重复出现。有没有办法让图像覆盖整个页面(无论是任何方式,拉伸,调整大小或新的东西)。
我的代码:
<!DOCTYPE HTML>
<html>
<head>
<title>Angry Birds Star Wars</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<style>
body {
background: url('http://www.androidtapp.com/wp-content/uploads/2012/11/Angry-Birds-Star-Wars-Menu.png');
}
</style>
</head>
<body></body>
</html>
谢谢。
更新:
我现在终于相信,几乎没有任何东西可以让该图像完全适合我的 PC 屏幕。我现在很好,正在进一步,请不要现在发布答案。
【问题讨论】:
标签: html css image background-image