为什么火狐中margin-top不起作用,而容器div添加border属性后才起作用?
在火狐下,表格上设置了margin-top:20,不起作用,仍然是顶部对齐(IE下可以)
<div style="padding-right:10px;"><div style="height:40px;padding-left:10px;background:#ff0;"> <TABLE cellpadding="0" cellspacing="0" style="width:100%;border:1px solid red;margin-top:20px" class="menubar"> <TR> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> </TR> </TABLE></div></div>
<div style="padding-right:10px;"><div style="height:40px;padding-left:10px;background:#ff0;border:1px solid blue"> <TABLE cellpadding="0" cellspacing="0" style="width:100%;border:1px solid red;margin-top:20px" class="menubar"> <TR> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> <A HREF="module.main" target="_self" title=""><span>链接</span></A></td> <td> </TR> </TABLE></div></div>