您的位置:首页 > 其它

设置iframe框架背景透明

2011-01-14 17:36 399 查看
iframe页面(head.jsp)body标签中加入:style=background:transparent

home.jsp调用iframe页面iframe标签中加入:allowTransparency="true"如: 

head.jsp

<html>
  <body style="background:transparent">
    hello,test!<!--  <iframe src="http://m.weather.com.cn/m/pn12/weather.htm" width="245" height="100" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" allowtransparency="true" scrolling="no"></iframe>-->
  </body>
</html>

 

hom.jsp

<html>
    <body style='background-color:#DFE8F6;'>
     <iframe src="head.jsp" width="380" height="110" frameborder="0" marginwidth="0" marginheight="0"    scrolling="no" name="I2" allowtransparency="true" align="middle">
     </iframe>
  </body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iframe 框架