Iframe随内容页变换高度以及iframe透明

Posted on 2008-01-04 10:09 傅晓风 阅读(356) 评论(1)  编辑  收藏 所属分类: else
 <iframe style="height:expression(right.document.body.scrollHeight)"    src="shijuanzhanshi_<%=id%>.asp" name="right" width="600" marginwidth="0"  align="center" marginheight="0" scrolling="no" frameborder="0"></iframe>

关键就在 style="height:expression(right.document.body.scrollHeight)"    这句话,right是你的iframe的name

 

透明:

将parent页的<iframe></iframe>改成<iframe allowTransparency="true"></iframe>

然后将iframe的页面也就是src所指向的页面中的<body>改为<body style="background-color:transparent">

Feedback

# re: Iframe随内容页变换高度以及iframe透明  回复  更多评论   

2009-10-23 16:03 by 大寺
不错

只有注册用户登录后才能发表评论。


网站导航: