简体   繁体   中英

Using rowspan and colspan in a customized table

我需要的图像

I'm very new at HTML table features, but i understand HTML.

I have to create a table exactly like the image, but I already have lost a good time trying to do it.

I think the best way to do it is work with 'rowspan', but I don't know how exactly.

Could someone give me a little help, please? Thanks!

Use it as an attribute. This example is for the first row (next to 110)

<td colspan="6"></td>

I'm not entirely sure what you're having difficulty with, but if you're struggling with table-cell styling, you can either utilize CSS' nth-child() selector or use classes to pinpoint specific cells for styling application.

I've recreated your table in this jsfiddle .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM