文本不透明度问题(1px 发光)
我有问题! 我需要使文本不透明。
我尝试使用 jquery:
$(document).ready(function() {
$(".item h2").css({ 不透明度: 0.5 }); });
并使用 css:
-moz-opacity:.50; -ms-filter:"alpha(不透明度=50)";过滤器:alpha(不透明度=50); opacity:.50;
但我总是在 Firefox 和 IE 中看到文本周围有一点发光 (1px)。 镀铬没问题!! 有谁有解决办法吗?!?! 非常感谢
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(opacity=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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说看起来不错。在 FF4 和 IE9/8/7 中测试
http://jsfiddle.net/aZC7v/
有时此类问题的解决方案是添加背景颜色到元素。 (.item 或 h2)
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)