日期:2014-05-17  浏览次数:20714 次

关于iframe内嵌页div中应用POSITION:fixed的问题
rt,主要功能是右下角浮动广告,贴上代码:
父页面:
HTML code

<iframe onload="init()"  id="padbcont_min_right" name="padbcont_min_right" src="PopMsg.html" frameBorder="0" width="100%" height="1000" scrolling="no"></iframe>


子页面:
HTML code

<div id="divPopMsg" style="display:none;z-index:9;right:10px;bottom:20px;height:32px;width:200px;POSITION:fixed;_position:absolute;_margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);" onmouseover="OpenAddWhenClose();">
<div id="divAdClose" style="width:200px;height:19px;margin-left:80px;"><img src="close.gif" onclick="AdClose();"></div>
<div id="divAdContent" style="width:200px;height:180px;color:red;overflow:hidden;background:url(content.png) no-repeat;">
</div>
</div>




------解决方案--------------------
帮顶