网页不透明? [英] Opacity in web pages?

查看:128
本文介绍了网页不透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在网站上看到60-80%的不透明度。他们看起来很酷,但我不确定他们为什么这样做。它是Javascript,还是图像?
如何更改表的不透明度?

I keep seeing 60-80% opacity on tables on websites. They look really cool, but I'm not sure why they are doing it. Is it Javascript, or is it an image? How do I change the opacity of a table?

推荐答案

您可以在CSS中执行此操作,但它需要小黑客让它跨浏览器工作。

You can do it in CSS, but it requires a little hacking to get it to work cross-browser.

selector {
    filter: alpha(opacity=50); /* internet explorer */
    opacity: 0.5;           /* fx, safari, opera, chrome */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; /*IE8*/
}

这篇关于网页不透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆