调用iframe,在ie里面可以正常显示出来iframe,但是在火狐里面iframe却被压了半截,没有完全出来,因为要考虑到左右内容对齐,左部内容已经确定,如果按照在火狐里面定高度,ie也正常,但是明显的左部内容和右边调用的iframe不能对齐,
除了增加左边内容对齐之外,有没有哪种方法定义iframe的高度,使之在ie和火狐下显示都正常呢?
非常感谢~~~
除了增加左边内容对齐之外,有没有哪种方法定义iframe的高度,使之在ie和火狐下显示都正常呢?
非常感谢~~~
<style type="text/css">
.wrap{width:970px;margin:0 auto;}
.seven_left{float:left;width:218px;}
.seven_rig{float:left;width:736px;margin-left:10px;}
.seven_left h2,.seven_rig h2{width:216px;padding:0 1px 1px; background:url(../hyxhimg/sev01.jpg) no-repeat;font-size:14px;font-weight:bold;height:28px;line-height:28px;text-align:left;border-bottom:1px solid #CAE6FE;}
h2 a{display:block;padding-left:40px;color:#075AA6;}
.sev_01{padding:10px 0 10px 9px; text-align:left;line-height:24px; font-size:12px;}
.seven_rig h2{ background:url(../hyxhimg/sev_02.jpg) no-repeat;height:28px;width:736px;}
</style>
<div class="wrap">
<div class="seven_left bx">
<h2><a href="" target="_blank">123</a></h2>
<div class="sev_01">
<b>dsf:</b>adfsadfdf<br />
<b>adf:</b>dsfdsf<br />
<b>dsaf:</b>dsfsaf<br />
<b>dsf:</b>dsfdsf<br />
<b>sdfdsa:</b>dfdsf<br />
<b>asdf:</b>dsfsdfdsf<br />
</div>
</div>
<div class="seven_rig bx">
<h2><a href="" target="_blank">comment</a></h2>
<div style="padding-top:4px;padding-bottom:4px;">
<iframe src="http://comment.info.hc360.com/homea/index.asp?ii_id=283692&height=156&width=726&style=1&areaname=hvacr" width="726" height="156" scrolling="no" frameborder="0"></iframe>
</div>
</div>
</div>请大家帮忙解决一下这个问题,iframe在ie和火狐里面高度不一致?谢谢~
<style type="text/css">
.wrap{width:970px;margin:0 auto;}
.seven_left{float:left;width:218px;}
.seven_rig{float:left;width:736px;margin-left:10px;}
.seven_left h2,.seven_rig h2{width:216px;padding:0 1px 1px; background:url(../hyxhimg/sev01.jpg) no-repeat;font-size:14px;font-weight:bold;height:28px;line-height:28px;text-align:left;border-bottom:1px solid #CAE6FE;}
h2 a{display:block;padding-left:40px;color:#075AA6;}
.sev_01{padding:10px 0 10px 9px; text-align:left;line-height:24px; font-size:12px;}
.seven_rig h2{ background:url(../hyxhimg/sev_02.jpg) no-repeat;height:28px;width:736px;}
</style>
<div class="wrap">
<div class="seven_left bx">
<h2><a href="" target="_blank">123</a></h2>
<div class="sev_01">
<b>dsf:</b>adfsadfdf<br />
<b>adf:</b>dsfdsf<br />
<b>dsaf:</b>dsfsaf<br />
<b>dsf:</b>dsfdsf<br />
<b>sdfdsa:</b>dfdsf<br />
<b>asdf:</b>dsfsdfdsf<br />
</div>
</div>
<div class="seven_rig bx">
<h2><a href="" target="_blank">comment</a></h2>
<div style="padding-top:4px;padding-bottom:4px;">
<iframe src="http://comment.info.hc360.com/homea/index.asp?ii_id=283692&height=156&width=726&style=1&areaname=hvacr" width="726" height="156" scrolling="no" frameborder="0"></iframe>
</div>
</div>
</div>请大家帮忙解决一下这个问题,iframe在ie和火狐里面高度不一致?谢谢~