国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

css 透明度的設置兼容所有瀏覽器

2024-07-11 08:27:42
字體:
來源:轉載
供稿:網友

復制代碼
代碼如下:
.transparent_class {filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5; opacity: 0.5;}

UPDATE: I wanted to pull this post out of the archives and update it a bit because it there seems to be a good amount of interest in this subject.

Here is what each of those CSS properties is for:

opacity: 0.5; This is the “most important” one because it is the current standard in CSS. This will work in most versions of Firefox, Safari, and Opera. This would be all you need if all browsers supported current standards. Which, of course, they don’t. filter:alpha(opacity=50); This one you need for IE. -moz-opacity:0.5; You need this one to support way old school versions of the Mozilla browsers like Netscape Navigator. -khtml-opacity: 0.5; This is for way old versions of Safari (1.x) when the rendering engine it was using was still referred to as KTHML, as opposed to the current WebKit.

來源:http://css-tricks.com/css-transparency-settings-for-all-broswers/
 這個我就不想翻譯了,很簡單,我也只是為了做個記錄。哈~~~

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新野县| 云和县| 鄂伦春自治旗| 东城区| 浑源县| 海晏县| 哈巴河县| 若尔盖县| 海宁市| 密山市| 合肥市| 睢宁县| 东光县| 甘洛县| 宁海县| 高安市| 军事| 全南县| 巩义市| 浑源县| 上杭县| 丹凤县| 上杭县| 三门县| 灵璧县| 日照市| 临沂市| 阜宁县| 闸北区| 平潭县| 泽库县| 龙州县| 南通市| 三江| 城口县| 页游| 邯郸县| 庆安县| 赞皇县| 达孜县| 隆德县|