简体   繁体   English

html 表怎么会有未对齐的单元格边框

[英]how can a html table have misaligned cell borders

I am struggling to make a html table that copies the layout of the table above.我正在努力制作一个复制上面表格布局的 html 表格。 I am just wondering what techniques to use and to recreate that table我只是想知道使用什么技术来重新创建该表

I have tried nested tables and have looked into using div instead to create this but am still having issues, mainly with the way that the lines are presented in this and are not in an obvious layout我已经尝试过嵌套表格,并研究过使用 div 来创建它,但仍然有问题,主要是线条在其中的呈现方式并且布局不明显

相关图片

Here is a cool tool:这是一个很酷的工具:

https://tabletag.net/ https://tabletag.net/

Here you need to nest a table in the second row这里需要在第二行嵌套一个表格

 table, td, th { border: 1px solid #595959; border-collapse: collapse; } td, th { padding: 3px; width: 30px; height: 25px; } th { background: #f0e6cc; }.even { background: #fbf8f0; }.odd { background: #fefcf9; }
 <table> <tbody> <tr> <td colspan="3"></td> <td colspan="5"></td> <td colspan="3" rowspan="2"></td> </tr> <tr> <td colspan="3"></td> <td colspan="5"></td> </tr> <tr> <td colspan="6"></td> <td colspan="5"></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table>

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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