惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园_首页
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
美团技术团队
IT之家
IT之家
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园 - 叶小钗
M
MIT News - Artificial intelligence
B
Blog RSS Feed
有赞技术团队
有赞技术团队
Y
Y Combinator Blog

博客园 - dadamoney

程序员创业-行业分析之区分易混淆的基本概念 MSSQl分布式查询(转) 产品经理的创新思维 PM、PD、UE与UI的区别 浏览器并发连接数 从LiveJournal后台发展看 大型网站系统架构以及性能优化方法(转) 使用开源软件,设计高性能可扩展互动网站 大型互联网网站架构心得之一:分(转) 大型互联网网站架构心得之二:并、换和其它(转) 高并发高流量网站架构(转) 转:Session服务器配置指南与使用经验 ZedGraph属性(转) 转:windows服务器配置 (转)SQL Server 假执行,预执行 (转)SQL 合并列值 转:操作必须使用一个可更新的查询 访问IIS元数据库失败解决方法(转) 转:安装IIS无法找到zClientm.exe文件的解决办法 转:c++builder读写INI文件 - dadamoney - 博客园
FF Sofari Opera chrome IE7 IE8 透明设置
dadamoney · 2009-08-31 · via 博客园 - dadamoney

安装了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还不支持这一属性。