zoukankan      html  css  js  c++  java
  • ff3.5已不再支持 mozopacity[转]

    FireFox3.5之后,发现以前项目网页中有透明属性的一些DIV都不透明了。于是猜想,FireFox3.5难道不支持它自家的CSS透明属性-moz-opacity了?上网一查,果真如此。
    在https://developer.mozilla.org/En/CSS:-moz-opacity里说得很清楚了:
    Note:  Firefox 3.5 and later do not support -moz-opacity.  By now, you should be using simply opacity.
    现在都要改用opacity这个属性。

    于是要设置一下透明度为60%的DIV就应该这样写了:
    div.transp { /* make the div translucent */
       opacity: 0.6;                /* Firefox, Safari(WebKit), Opera)
       filter: "alpha(opacity=60)"; /* IE 8 */
       filter: alpha(opacity=60);   /* IE 4-7 */
       zoom: 1;                     /* needed in IE up to version 7, or set width or height to trigger "hasLayout" */
    }

    opacity这个是属于CSS3里面的东西了,属于CSS3的标准。然而微软IE8还不支持这一属性。

  • 相关阅读:
    junit单元测试
    方法引用
    方法引用表达式(1)
    Stream流的常用方法
    Stream流
    综合案例:文件上传
    tcp通信协议
    python 生成器与迭代器
    Python 序列化与反序列化
    python 文件操作
  • 原文地址:https://www.cnblogs.com/ifishing/p/1782750.html
Copyright © 2011-2022 走看看