Jquery设置不透明度问题
$("html").fadeTo("slow",0.5);
OR
$("html").css({ 'opacity':'0.5' });
为什么这些脚本会使页面变白?我需要它变得更暗,而不是更白,通常这就是不透明度的作用,但这里不是......
我怎样才能用jquery为我的html设置黑色不透明度?
$("html").fadeTo("slow",0.5);
OR
$("html").css({ 'opacity':'0.5' });
Why does either of these scripts whiten the page? I need it to become darker, no whiter, and usually that's what opacity does but not here...
How can I set a black opacity to my html with jquery?
添加一个黑色 div 并将其淡入所有内容之上
HTML:
CSS:
JQuery:
这是一个工作示例: http ://jsfiddle.net/AlienWebguy/GM2Z6/2/
Add a black div and fade it in on top of everything
HTML:
CSS:
JQuery:
Here's a working example: http://jsfiddle.net/AlienWebguy/GM2Z6/2/