Home  >  Article  >  Web Front-end  >  Please solve the problem. IE8 transparency background and text are also transparent_html/css_WEB-ITnose

Please solve the problem. IE8 transparency background and text are also transparent_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:171303browse

-moz-opacity: 0.8; opacity: .80; filter: alpha(opacity=88); Using transparency, the display is normal in Firefox, but not normal in IE8. The background in IE8 follows The content text inside also becomes transparent.


Reply to the discussion (solution)

Do not place the text on the transparent layer

Not on the transparent layer, I only I set up a div, added a background color, and then made the background color transparent. As a result, it failed to display in IE8, but it was no problem in other browsers

Use Jquery to set the transparent content to opaque. Just fine$("").animate({opacity:1},1000);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn