2010-06-01 53 views
1

我想在td.i的底部边框得到了使用边界:1px的点缀黑色;。但它不是在ie7.the TD高度可见的是10px.if我使用& NBSP它在ie7.but我不需要那么多height.can谁能帮助我看到?这是不是一个好主意 - 在这里,我的代码边界是不可见在IE7

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled Document</title> 
<style type="text/css"> 
<!-- 
.border { 
    border-bottom-width: 1px; 
    border-bottom-style: dotted; 
    border-bottom-color: #0099FF; 
    margin: 0px; 
    padding: 0px; 
} 
body { 
    margin-left: 0px; 
    margin-top: 0px; 
    margin-right: 0px; 
    margin-bottom: 0px; 
} 
--> 
</style> 
</head> 

<body> 
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> 
    <tr> 
    <td height="10" class="border" ></td> 
    <td height="10" class="border" ></td> 
    </tr> 
</table> 
</body> 
</html> 
+0

为空表格单元格像您使用表格排版的声音给我。如果我是对的:你不能以另一种方式做你的布局吗? - 如果我错了:你能请张贴一些代码(你所谈论的表格和你的CSS)? – oezi 2010-06-01 07:04:04

回答

0
table { 
border-collapse: collapse; 
} 
+0

我不认为这是什么S.Rangaraj是要求 - 这将帮助,如果有细胞之间的丑陋双bprders,但并没有什么... – oezi 2010-06-01 07:01:41