CSS Positioning Absolute within table cells not working in Firefox

后端 未结 7 1159
礼貌的吻别
礼貌的吻别 2021-01-17 15:48

I cannot figure out this positioning problem in Firefox. It doesn\'t seem to follow the absolute positioning rule. Is there something I\'m doing that shouldn\'t be done, but

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 16:13

    Change ID's to classes and also displaying it as blocks fixes it:

    http://jsfiddle.net/GchWZ/

    It is better and more "proper" to user an inner div though as quoted from this stack overflow post: Does Firefox support position: relative on table elements?

    
      
    This will be positioned normally
    This will be positioned at 5,5 relative to the cell

提交回复
热议问题