filter:progid:DXImageTransform.Microsoft.gradient在ie7中不工作 [英] filter: progid:DXImageTransform.Microsoft.gradient is not working in ie7
本文介绍了filter:progid:DXImageTransform.Microsoft.gradient在ie7中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要对我的 div
应用渐变背景颜色。
I want to apply a gradient background color to my div
.
:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fad59f', endColorstr='#fa9907')
它在IE9和IE8工作。但不工作在IE7。
It's working in IE9 and IE8. But not working in IE7.
在IE中我应该怎么做?
What should I do to see in IE?
这里是一个JSFiddle: http://jsfiddle.net/xRcXL/2/
Here is a JSFiddle: http://jsfiddle.net/xRcXL/2/
推荐答案
在看过你的小提琴在评论中的问题是很容易解决。你只需要添加 overflow:auto
或者为你的 div
设置一个特定的高度。实例: http://jsfiddle.net/tw16/xRcXL/3/
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)";
}
这篇关于filter:progid:DXImageTransform.Microsoft.gradient在ie7中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文