Can we add div inside table above every ?

后端 未结 7 856
借酒劲吻你
借酒劲吻你 2020-11-30 07:14

Hi am trying to add a div above every but when i look at the html console the div are showing outside the table. below is the html code.



        
7条回答
  •  一生所求
    2020-11-30 07:40

    You can't put a div directly inside a table but you can put div inside td or th element.

    For that you need to do is make sure the div is inside an actual table cell, a td or th element, so do that:

    HTML:-

    
      
        

    I'm text in a div.

    For more information :-

    http://css-tricks.com/using-divs-inside-tables/

提交回复
热议问题