Can I create a HTML table width a percentage height but pixel accurate row heights?

后端 未结 8 728
逝去的感伤
逝去的感伤 2021-01-07 05:37

I need to create a table on a web page that has two rows. The table needs to fill the entire page so I have set the height and width of the table to 100% in the CSS styleshe

8条回答
  •  -上瘾入骨i
    2021-01-07 05:47

    
    
    
    
        
        
    
        TableTest
    
    
    
    
    
    
    Header1 Header2
    Data1 Data2

    This is what I believe a more semantic approach without using the id of class attributes in the table tags, taking advantage of the tag to make the difference between both rows. This code doesn't work as intended in IE6/7, it might work in IE8, I tested it and works correctly in Firefox 3, Safari 3.1.2, Opera 9.50 and Camino 1.6.6.

提交回复
热议问题