我试图将2个iframe并排放置,并将它们放在页面的中心。围绕它们的DIV在中央有所有文本等,但iframe基于对齐标记左右坐,但不在中间。
HTML:
<div class="box">
<iframe src="iframe content" width="64" height="65" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" align="left">
</iframe>
</div>
<div class="box">
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="iframe content" style="height:20px;" align="right">
</iframe>
</div>
CSS:
.box iframe{
display:inline-block;
}
.clear{
clear:both;
}
答案 0 :(得分:1)
您可以添加
boolean equals(Object obj)
对于iframe,您也可以使用左侧浮点数。或者甚至显示:内联块也很好。