html background color is not displayed on ie9_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:01
Original
1022 people have browsed it

IE9 HTML CSS

CSS: .main_le li.vio,.main_ri li.vio{background:-webkit-gradient(linear,100% 0,0 0,from(#876CD5),to (#5333AE));background:-o-linear-gradient(right,#876CD5,#5333AE);background:-moz-linear-gradient(right,#876CD5,#5333AE);}

Code in:
  • Hot Activities


  • in It can be displayed correctly on 360, Firefox and Google. The background color cannot be displayed on IE9. Please help me. The css is a separate file.

    Reply to discussion (solution)

    IE needs to use filters

    background:-webkit-gradient(linear,100% 0,0 0,from( #876CD5),to(#5333AE));
    background:-o-linear-gradient(right,#876CD5,#5333AE);
    background:-moz-linear-gradient(right,#876CD5,# 5333AE);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5333AE', endColorstr='#876CD5',GradientType=1);

    Please provide additional explanation for the first floor
    IE relies on filters to achieve gradients.
    startColorstr represents the color of the starting point, and endColorstr represents the color of the end point. GradientType represents the gradient type, 0 is the default value, indicating vertical gradient, 1 represents horizontal gradient

    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template