• 如何让iframe背景在IE下透明


    有时候,我们会在网页里嵌套iframe,一般的浏览器(Firefox,Chrome等等)默认的背景是透明的,但IE浏览器(IE6/IE7/IE8)默认背景是白色的。那么如何让IE浏览器嵌套iframe背景也透明呢?

    这个时候,我们就需要在iframe里面添加属性allowTransparency=”true”(true:允许透明)

    注意:在iframe引进的head_nav.html页面的时候,不要设置head_nav.html页面html或body的背景颜色。(head_nav.html为你iframe导入的页面地址)

    <iframe src=”head_nav.html” frameborder=”0″ scrolling=”no” width=”100%” height=”150″ allowTransparency=”true”></iframe>

    友情提示:iframe里面链接的打开方式最好是target=”_blank”,不然你会看到悲剧的情景~

  • 相关阅读:
    局域网中CSMA/CD协议的应用
    RIP及距离向量算法
    网桥与以太网交换机
    C++ String
    C++ Input & Output
    Shell Script(1)----variable compare
    python--内建函数(1)
    python--data type
    python--compile
    python--help
  • 原文地址:https://www.cnblogs.com/visense/p/3190695.html
Copyright © 2020-2023  润新知