如何完全填写< table> < tbody> 100%在HTML中? [英] How do I completely fill a <table> 100% with <tbody> in HTML?
本文介绍了如何完全填写< table> < tbody> 100%在HTML中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些HTML和Javascript注入到网页中。我注入的最终HTML看起来像是:
I have some HTML that inject with Javascript into a web page. The final HTML I inject looks like:
<table style="border-width: 0px; margin 0px; width:100%; height: 100%; padding:0px;">
<tbody style="border-width: 0px; margin 0px; width:100%; height: 100%; padding:0px;">
由于某些奇怪的原因,当我在Firebug中检查tbody时,其大小似乎比表小4px 。
For some odd reason when I examine tbody in Firebug, its size seems to be 4px smaller than the table. How do I get the to fill up ?
推荐答案
尝试将以下CSS添加到表中:
try adding the following css to your table:
border-collapse: collapse;
这篇关于如何完全填写< table> < tbody> 100%在HTML中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文