2010-06-01 78 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