HTML 表格宽度。
在我看来,我在这里严重丢失了一些东西,但我找不到手机 下表的内容跨越整个表格。请参阅附加的以下 jsfiddle 链接:
http://jsfiddle.net/jeremysolarz/5stQc/2/
我知道表格设计不太好,但我正在使用一个遗留应用程序,其中有很多 gif 间隔图像,我想删除它并切换到更以 CSS 为中心的布局。
请帮忙。
It seems to me that I horribly missing something here but I can't get the cell
of the following table to span across the whole table with. See following jsfiddle link attached:
http://jsfiddle.net/jeremysolarz/5stQc/2/
I know table design isn't nice but I'm working with a legacy application here with a lot of
gif spacer images and I want to remove this and switch to a more CSS centered layout.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这种情况下是否需要嵌套表?如果您只有一个表并使用
这可以解决问题吗?抱歉,如果情况并非如此,但您似乎过于复杂化了!
Is it necessary to have a nested table in this case? If you just had a single table and used
<th colspan="3">
would this solve the issue? Sorry if this is not the case but it seems like you are overcomplicating it!您当前正在内联(在 html 中)和 CSS 中声明表格的宽度,并且两个值都不同,您应该将表格包装在 div 中,如下所示,并删除内联宽度声明。
/* 框架 */
Html 现在应该如下所示:
You are currently declaring the width of the table inline(in the html) and in the CSS and both values are different, you should wrap the tables in a div as follows, and remove the inline width declaration.
/* frames */
The Html should now look like this: