Does Firefox support position: relative on table elements?

后端 未结 9 1264
Happy的楠姐
Happy的楠姐 2020-11-22 12:49

When I try to use position: relative / position: absolute on a or in Firefox it doesn\'t seem to wo

9条回答
  •  时光说笑
    2020-11-22 13:30

    The accepted solution kind of works, but not if you add another column with more content in it than in the other one. If you add height:100% to your tr, td & div then it should work.

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

    The only problem is that this only fixes the column height problem in FF, not in Chrome and IE. So it's a step closer, but not perfect.

    I updated a the fiddle from Jan that wasn't working with the accepted answer to show it working. http://jsfiddle.net/gvcLoz20/

提交回复
热议问题