Firefox支持位置:相对于表元素? [英] Does Firefox support position: relative on table elements?

查看:102
本文介绍了Firefox支持位置:相对于表元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在上使用 position:relative / position:absolute

简单而最适当的方法是将单元格的内容包装在div中,并添加位置:相对于该div。

Easy and most proper way would be to wrap the contents of the cell in a div and add position:relative to that div.

示例:

<td>
  <div style="position:relative">
      This will be positioned normally
      <div style="position:absolute; top:5px; left:5px;">
           This will be positioned at 5,5 relative to the cell
      </div>
  </div>
</td>

这篇关于Firefox支持位置:相对于表元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆