开发者

Text Opacity problem (1px glow)

I've got a problem! I need to have opacity on a text.

I try with jquery:

$(document).ready(function() {

$(".item h2").css({ opacity: 0.5 }); });

and with css:

-moz-opacity:.50; -ms-filter:"alpha(opacity=50)"; filter:alpha(opa开发者_Python百科city=50); opacity:.50;

but all times i see a little glow (1px) around my text in Firefox and IE. Chrome is ok!! Anyone have a solution?!?! Thx a lot


Looks ok to me. Tested in FF4 and IE9/8/7
http://jsfiddle.net/aZC7v/

Sometimes a solution for this kind of problem is adding a background-color to the element. (either .item or the h2)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜