在8号电文中出现问题,即当表格被装入TD时,对不工作的图像进行垂直调和。 对所有浏览器都处以罚款......
<table cellpadding="1" cellspacing="1">
<tr>
<td><div style="border: #999999 1px Solid; background-color: #D0D7E0; color:black; vertical-align:middle"> <img src="images/calendar/redflag.gif" border="none" style="vertical-align:middle" alt="Scheduling" /><span style=""> Scheduling Rule </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0DFD0; color:black; vertical-align:middle"> <img src="images/eventtype_conference.gif" border="none" style="vertical-align:middle;" alt="Conference" /><span style="">Conference </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_exercise.gif" border="none" style="vertical-align:middle" alt="Exercise" /><span style="">Exercise </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_training.gif" border="none" style="vertical-align:middle" alt="Training" /><span style="">Training Event </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_other.gif" border="none" style="vertical-align:middle" alt="Other" /><span style="">Other Event </span></div></td>
</tr>
</table>
但是,如果我在表格中说明这一点,那么在图像旁边的文字就会被置于图像之下,而不是放在8号电子表格上。
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td id="td1" width="5%"> </td>
<td id="td2" align="center" width="30%">
<table cellpadding="1" cellspacing="1">
<tr>
<td><div style="border: #999999 1px Solid; background-color: #D0D7E0; color:black; vertical-align:middle"> <img src="images/calendar/redflag.gif" border="none" style="vertical-align:middle" alt="Scheduling" /><span style=""> Scheduling Rule </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0DFD0; color:black; vertical-align:middle"> <img src="images/eventtype_conference.gif" border="none" style="vertical-align:middle;" alt="Conference" /><span style="">Conference </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_exercise.gif" border="none" style="vertical-align:middle" alt="Exercise" /><span style="">Exercise </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_training.gif" border="none" style="vertical-align:middle" alt="Training" /><span style="">Training Event </span></div></td>
<td><div style="border: #999999 1px Solid; background-color: #E0D3D0; color:black; vertical-align:middle"> <img src="images/eventtype_other.gif" border="none" style="vertical-align:middle" alt="Other" /><span style="">Other Event </span></div></td>
</tr>
</table>
</td>
<td id="td3" align="center" width="30%"> </td>
<td id="td4" width="30%"> </td>
<td id="td5" width="5%"> </td>
</tr>
</table>
所有其他浏览器,包括IE7, 工作罚款。 关于如何在IE8中确定这一点的任何想法?