table-cell - some kind of colspan?

前端 未结 8 1837
甜味超标
甜味超标 2020-12-06 09:46

I am a bit puzzled right now, because I had CSS code that worked, but it wasn\'t beautiful at all. I now want to rework this CSS styles and build them via LESS. And I have b

8条回答
  •  我在风中等你
    2020-12-06 10:37

    CSS has no colspan analog. Based on your example, you can just mark up your last row as a separate nontably block.

    You could also use display: table-caption in conjunction with caption-side: bottom to display the table row as a last “row” that spans all columns. See live demo.

提交回复
热议问题