Html 粘脚是一个很小的问题

Html 粘脚是一个很小的问题,html,css,Html,Css,下面是我的粘性页脚代码,它工作正常,但我不知道为什么我的粘性页脚没有显示在中心对齐的位置,请告诉我如何修改它以完成我的问题。。。或者有没有其他好的方法来制作粘脚呢。 谢谢 2012年&复印件;DND俱乐部的会员。由辐射3开发。 删除中的td <table width="900" height="42" border="1" align="center" style="border-style:none; position: absolute;width: 900px;vertical-a

下面是我的粘性页脚代码,它工作正常,但我不知道为什么我的粘性页脚没有显示在中心对齐的位置,请告诉我如何修改它以完成我的问题。。。或者有没有其他好的方法来制作粘脚呢。 谢谢


2012年&复印件;DND俱乐部的会员。由辐射3开发。
删除
中的
td

<table width="900" height="42" border="1" align="center" style="border-style:none; position: absolute;width: 900px;vertical-align: middle;text-align: center;z-index:999999999 !important; bottom: 0px;" cellpadding="0" cellspacing="0" bordercolor="#AEAEAE" bgcolor="#0C4549">
    <tr>
        <td align="center" bgcolor="#0C4549" >2012 &copy; of DND CLUB. Developed by Radiations3.</td>
    </tr>
</table>

2012年&复印件;DND俱乐部的会员。由辐射3开发。

看看这个。更好的解决方案


另外,除了显示表格数据外,还应尽量避免使用表格。下面是一个经过长期验证的粘性页脚解决方案。它使用起来非常简单,我经常使用


您好,检查一下这个,我希望它能起作用:-

<table width="100%" height="42" border="1" align="center" style="
position:absolute;
left:0;
right:0;
vertical-align:middle;
text-align:center;
bottom: 0px;
background:#0C4549;"
cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">2012 &copy; of DND CLUB. Developed by Radiations3.
        </td>
  </tr>
</table>

2012年&复印件;DND俱乐部的会员。由辐射3开发。

演示:-

您是否尝试过边距:0自动;在style?中,您可以使用div,而不是使用table,这样代码将具有更少的空间,与table相比,样式设置也会稍微容易一些。
<table width="100%" height="42" border="1" align="center" style="
position:absolute;
left:0;
right:0;
vertical-align:middle;
text-align:center;
bottom: 0px;
background:#0C4549;"
cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">2012 &copy; of DND CLUB. Developed by Radiations3.
        </td>
  </tr>
</table>