填充在iE不工作? [英] Padding does not work in iE?
问题描述
我想在元素的边框内部留出空间。
I would like to have space around the content, inside the border of the element.
http://www.w3schools.com/CSS/css_padding.asp
我已使用cellpadding这是工作相当好在FF但不是在IE。我使用的IE版本是 7.0.5730.13
I have used cellpadding which is working pretty good in FF but not in IE. The version of IE that I am using is 7.0.5730.13
我尝试过一个简单的表格
I have tried a simple table
<table style="padding:100px" border="1">
<tr><td>123</td></tr>
<tr><td>456</td></tr>
<tr><td>678</td></tr>
<tr><td>kuz</td></tr>
</table>
但是输出没有空间..如果我在<$ c时使用padding标签$ c>< td>。它工作得很好。
由于填充在IE中不起作用。我使用了一种替代方法。
But the output does not have space at all.. If I am using padding tag at <td>.
It is working good.
As padding is not working in IE. I used an alternate method.
我创建了两个虚拟行;一个在上面,另一个在底部和虚拟列一个在右边另一个左边,我打扮他们用填充。这是工作。
I have created two dummy rows; one on top, another on the bottom and dummy columns one on right another left and I styled them with padding. It is working. Please let me know if there is any better method to have space around the content.
推荐答案
http://www.w3schools.com/CSS/css_table.asp
表格填充通过单元格(td)实现
http://www.w3schools.com/CSS/css_table.asp
Table padding is only implemented via a cell (td)
这篇关于填充在iE不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!