Colspan on cell in one row seems to prevent setting TD width in all the other rows. Why?

后端 未结 4 1505
Happy的楠姐
Happy的楠姐 2020-12-31 09:58

I want to create a table which look like this:

+-----------------------------------------------------------+
|January 12th, 2012                                      


        
4条回答
  •  臣服心动
    2020-12-31 10:37

    As found in this answer you can set attributes for the entire table via colgroup and col. That way you are able to set individual attributes even for the (invisible single) cells inside the colspan in the first row.

    In your example it would be:

    January 12th 2011 this here is just for padding to make table wider
    x First item Second item

    Here's a fiddle

提交回复
热议问题