设置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>
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框架背景透明
- 为iframe设置透明背景的代码
- 关于如何在iframe中设置背景颜色为透明
- 让IFRAME框架内的文档的背景透明收藏
- iframe背景透明的设置方法
- iframe 背景透明和设置边框
- iframe设置背景透明(allowTransparency属性)
- iframe背景透明的设置方法
- IE下如何设置iframe背景透明
- 实现框架页面iframe的背景透明方法
- 设置iframe背景透明
- ie下iframe设置背景透明
- 让IFRAME框架内的文档的背景透明
- Iframe设置为透明背景
- 一个使用iframe引入指定页面的指定区域并设置框架透明的例子
- iframe设置背景透明
- 让IFRAME框架内的文档的背景透明
- iframe中设置调用的文件背景透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- QWidget中加载QML页面并设置透明背景