HTML兼容问题 TABLE跨行跨列在IE11中变形
HTML代码:<body>5x4<tableborder="1"><tbody><tr><tdwidth="80"height="40"colspan="2"rowspa...
HTML代码:
<body>
5x4
<table border="1">
<tbody>
<tr>
<td width="80" height="40" colspan="2" rowspan="1">1</td>
<td width="40" height="40" colspan="1" rowspan="1">2</td>
<td width="40" height="40" colspan="1" rowspan="1">3</td>
<td width="40" height="80" colspan="1" rowspan="2">4</td>
</tr>
<tr>
<td width="80" height="80" colspan="2" rowspan="2">5</td>
<td width="40" height="80" colspan="1" rowspan="2">6</td>
<td width="40" height="40" colspan="1" rowspan="1">7</td>
</tr>
<tr>
<td width="80" height="80" colspan="2" rowspan="2">8</td>
</tr>
<tr>
<td width="40" height="40" colspan="1" rowspan="1">9</td>
<td width="80" height="40" colspan="2" rowspan="1">10</td>
</tr>
</tbody>
</table>
</body>
Chrome结果:正常
IE11结果:变形
IE这个问题要怎么解决 展开
<body>
5x4
<table border="1">
<tbody>
<tr>
<td width="80" height="40" colspan="2" rowspan="1">1</td>
<td width="40" height="40" colspan="1" rowspan="1">2</td>
<td width="40" height="40" colspan="1" rowspan="1">3</td>
<td width="40" height="80" colspan="1" rowspan="2">4</td>
</tr>
<tr>
<td width="80" height="80" colspan="2" rowspan="2">5</td>
<td width="40" height="80" colspan="1" rowspan="2">6</td>
<td width="40" height="40" colspan="1" rowspan="1">7</td>
</tr>
<tr>
<td width="80" height="80" colspan="2" rowspan="2">8</td>
</tr>
<tr>
<td width="40" height="40" colspan="1" rowspan="1">9</td>
<td width="80" height="40" colspan="2" rowspan="1">10</td>
</tr>
</tbody>
</table>
</body>
Chrome结果:正常
IE11结果:变形
IE这个问题要怎么解决 展开
3个回答
展开全部
在html页的head里加句<meta http-equiv="X-UA-Compatible" content="IE=edge" />
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
说明两个浏览器对px的解释不一样,你加上单位px试试,然后设置table的宽高试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询