Rowspan and colspan problems in IE

后端 未结 1 1749
一向
一向 2021-01-24 23:21

So, I need to create table with complicated system of colspans and rowspans. You can look at that here

This is html:

1条回答
  •  迷失自我
    2021-01-25 00:16

    Think of your layout as a 9 column grid where the content spans 1, 2 or 3 columns. Then use floats:

    #grid {
      width: 900px;
      overflow: hidden;
    }
    #grid div {
      float: left;
    }
    #grid .col-3-9 {
      width: 33.33%;
    }
    #grid .col-2-9 {
      width: 22.22%;
    }
    #grid .col-1-2 {
      width: 50%;
    }
    #grid img {
      display: block;
      width: 100%;
    }

    0 讨论(0)
提交回复
热议问题