我正在设计一个网站,我需要它看起来像这样http://www.spookycraft.net/
不包括幻灯片和javascript等,我只需要在网页中间有4个单独的可点击块,我尝试使用margin:auto
然后重新定位它使用margin-left
and等margin-bottom
但是当我使用它时margin-bottom
它只会分开更多并且行为相当有趣的是,这是我当前的代码请记住,我还需要它在更高分辨率的屏幕上看起来相同,这就是我尝试使用的原因margin:auto;
<!DOCTYPE HTML>
<html>
<head>
<table border="10px"; class="head">
<tr>
<td>
<img src="http://www3.alcatel-lucent.com/partners/hp/data-center-network-connect/images/Alliance_DCNC_700x200.jpg" > </>
</td>
<tr>
</table>
<style media="screen" type="text/css">
.tone{
margin:auto;
}
.ttwo{
margin:auto;
}
.tthree{
margin:auto;
}
.tfour{
margin:auto;
}
.head{
margin:auto;
}
</style>
</head>
<body>
<table border="5px"; class="tone">
<tr>
<td>
<a href="www.reddit.com"><img src="http://www.wilsoninfo.com/300x300.gif"> </> </a>
</td>
</tr>
</table>
<table border="5px"; class="ttwo">
<tr>
<td>
<a href="www.reddit.com"><img src="http://www.wilsoninfo.com/300x300.gif"> </> </a>
</td>
</tr>
</table>
<table border="5px" class="tthree">
<tr>
<td>
<a href="www.reddit.com"><img src="http://www.wilsoninfo.com/300x300.gif"> </> </a>
</td>
</tr>
</table>
<table border="5px" class="tfour">
<tr>
<td>
<a href="www.reddit.com"><img src="http://www.wilsoninfo.com/300x300.gif"> </> </a>
</td>
</tr>
</table>
</body>
</html>
任何帮助,将不胜感激!我将努力找到我的问题的答案,当我这样做时,我会更新这个线程。