position: relative不适用于表格单元格(
<td>或
display: table-cell)。
‘position:relative’对table-row-group,table-header-group,table-footer-
group,table-row,table-column-group,table-column,table-cell和table- caption元素的影响未定义。
因此,Firefox并没有做错任何事情,尽管我确实希望它能够复制其他浏览器并使其正常工作。
为此,您需要
div在每个容器中添加一个包装器
td(并调整CSS选择器):
<table id="mainmenu"> <tr> <td> <div > <a href="#">..</a> <ul> .. </ul> </div> </td> .. </tr></table>



