iframe透明解決方案

<!--父頁面-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>父頁面</title>
</head>
<body bgcolor="#FF0000">
<iframe src="***.htm"  allowTransparency="true"></iframe>
</body>
</html>

<!--子頁面-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>子頁面</title>
<style type="text/css">
body
{
    background-color: transparent; 
}
</style>
</head>
<body>
</body>
</html>



 

發佈了45 篇原創文章 · 獲贊 5 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章