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

后端 未结 8 721
逝去的感伤
逝去的感伤 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条回答
  •  长发绾君心
    2021-01-07 05:57

    OK working with CSS.

    HTML:

    
      
        
      
      
        
    This is item text.
    This is item text 2.

    CSS:

    table
    {
     border: 1px solid black;
     height: 100%;
     width: 100%;
    }
    
    tr.fixed
    {
     border: 1px solid black;
     height: 100px;
    }
    
    td
    {
     border: 1px solid black;
    }
    

提交回复
热议问题