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>