zoukankan      html  css  js  c++  java
  • FF Sofari Opera chrome IE7 IE8 透明设置

    安装了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还不支持这一属性。
  • 相关阅读:
    愤怒的小鸟(angry bird )
    1101模拟
    1029模拟题解
    1028题解
    图床
    数据结构
    博弈论
    差分
    前缀和
    快读和快写
  • 原文地址:https://www.cnblogs.com/dadamoney/p/1557058.html
Copyright © 2011-2022 走看看