2012-03-02 82 views
2

最近我創建了表格,我不知道爲什麼,但在Internet Explorer中,單元格已經有邊框,不知道爲什麼,並且它正在混合整個表格。IE8表td邊框

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 
<html> 
<head> 
<title>Dragon</title> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> 
</head> 
<style> 
td{ 
    display: inline-block; 
} 
</style> 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#e2e3e7" style="font-family:Arial, Helvetica, sans-serif;border:none;"> 
<table id="Table_01" width="602" style="table-layout:fixed;box-sizing: border-box;" align="center" height="3401" border="0px #ffffff solid" cellpadding="0" cellspacing="0"> 
    <tr> 
     <td rowspan="10"> 
      <img style="display:block" src="images/Concept1_01.gif" width="1" height="394" alt=""></td> 
     <td colspan="47"> 
      <img style="display:block" src="images/Concept1_02.gif" width="600" height="56" alt=""></td> 
     <td> 
      <img style="display:block" src="images/spacer.gif" width="1" height="56" alt=""></td> 
    </tr> 
    <tr> 
     <td rowspan="3"> 
      <img style="display:block" src="images/Concept1_03.gif" width="26" height="59" alt=""></td> 
     <td colspan="27"> 
      <img style="display:block" src="images/Concept1_04.gif" width="307" height="14" alt=""></td> 
     <td colspan="19" rowspan="3"> 
      <img style="display:block" src="images/Concept1_05.gif" width="267" height="59" alt=""></td> 
     <td> 
      <img style="display:block" src="images/spacer.gif" width="1" height="14" alt=""></td> 
    </tr> 
</table> 
</body> 
</html> 

回答

2

也許您想將doctype更改爲<!DOCTYPE html>並嘗試在表格上設置border="0"

1

當我在IE 9上進行測試併發布代碼的逐字副本時,沒有邊框。該表的格式很多,並且不符合HTML表格模型,因此渲染可能會有很大差異,但是如果您看到邊框或者看起來像邊框的東西,則可能來自某些未包含的代碼。

1

快速瀏覽一下你table表示高度在tr賬戶約600,而table高度,在table規定,是關於3000。因此邊界可以是某種填充。