我正在创建一个将表格标签转换为 div 的 jsp 标签。这是我的标签生成的代码。在 ie9 中,蓝色 div 和黑色 div 之间有一个空格。我已经尝试了几乎所有方法来以正确的方式解决它。请帮助 :-(,我逐字包含它,因为我不确定 ie9 是否对空白做了一些奇怪的事情;
<!-- AUTO GENERATED TABLE ELEMENT -->
<div style=" ">
<!-- AUTO GENERATED TABLE:ROW ELEMENT -->
<div style="clear:left; margin: 0px; padding: 0px;">
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
<div style="float:left; background-color: blue; height: 50px; width: 300px; text-align: center; margin: 0px; padding: 0px;">
<!--<p style="color: white;">You have reached this page in error</p>-->
</div>
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
<div style="float:left; background-color: blue; height: 50px; width: 300px; text-align: center; margin: 0px; padding: 0px;">
<!--<p style="font-weight: bold; color: red;">No matching path</p>-->
</div>
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
</div>
<!-- AUTO GENERATED TABLE:ROW ELEMENT -->
<!-- AUTO GENERATED TABLE:ROW ELEMENT -->
<div style="clear:left; margin: 0px; padding: 0px;">
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
<div style="float:left; background-color: black; color: white; height: 600px; width: 600px; text-align: center; margin: 0px; padding: 0px;">
<font style="font-size: 50px">¿</font>
</div>
<!-- AUTO GENERATED TABLE:CELL ELEMENT -->
</div>
<!-- AUTO GENERATED TABLE:ROW ELEMENT -->
</div>
<!-- AUTO GENERATED TABLE ELEMENT -->