这是我的 HTML 文件
<html>
<head>
<style type="text/css">
body
{
background-image: url(Images/android_background.png);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div class="wrapper">
<div id='cssmenu' style="position:relative; top:100px; ">
<ul>
<li class='active '><a href='#'><span>Home</span></a></li>
<li><a href='#’><span>Android</span></a>
</li>
<li><a href='#'><span>About</span></a></li>
<li><a href='#'><span>Contact</span></a></li>
<li><a href='#'><span>extra</span></a></li>
</ul>
</div>
<center>
<table border="1" style="position:relative; top:200px; ">
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
<tr><td> Under Construction </td> </tr>
</table>
</center>
<div class="push"></div>
</div>
<div class="footer" style=" position:relative; top:300px;" >
<img src="android/Images/home_background.png" />
</div>
</body>
</html>
输出 :
缩小此网页时,背景和页脚图像的对齐方式已更改。缩小后的输出为:
我对网页设计很陌生。我不知道为什么会这样?你能给出一些解决方案吗?
提前谢谢。