filter: progid:DXImageTransform.Microsoft.gradient is not working in ie7

前端 未结 4 791
深忆病人
深忆病人 2021-02-02 08:29

I want to apply a gradient background color to my div.

For IE I have used the property:

filter: progid:DXImageTransform.Microsoft.gradient(s         


        
4条回答
  •  甜味超标
    2021-02-02 08:32

    Having seen your fiddle in the comments the issue is quite easy to fix. You just need to add overflow:auto or set a specific height to your div. Live example: http://jsfiddle.net/tw16/xRcXL/3/

    .Tab{
        overflow:auto; /* add this */
        border:solid 1px #faa62a;
        border-bottom:none;
        padding:7px 10px;
        background:-moz-linear-gradient(center top , #FAD59F, #FA9907) repeat scroll 0 0 transparent;
        background:-webkit-gradient(linear, left top, left bottom, from(#fad59f), to(#fa9907));
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907);    
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907)";
    }
    

提交回复
热议问题