让网页框架透明 底部对齐的代码

让网页框架透明 底部对齐的代码

让网页框架透明

IE5.5和NN6以上的浏览器支持Frame,Iframe对象的allowTransparency方法,如果某对象的背景颜色设置为Transparency的,它将继承包含它容器的特性。我们可以通过这个特性实现透明背景的开/关。

代码如下:

a.html如下:

透明文档

此IFRAME无背景颜色

BODY:

iframe

底部对齐的代码:

.box1 {border:1px #cccccc solid; width:500px; height:600px;position:relative;}

.box2 {border-top:1px #cccccc solid; background:#f2f6fb; width:498px; height:22px; position:absolute; bottom:0;}

© 版权声明

相关文章

暂无评论

none
暂无评论...