Possible Duplicate:
Equivalent to text-shadow in IE
我有这个文字影子,在Safari工作很好,但在IE却不行。我怎么才能对Safari和IE产生同样的影子效应呢?
<a class="feast_info" title="title">feast</a>
.feast_info {
cursor: pointer;
color: green;
text-shadow: 2px 2px 2px #303030;
}
Possible Duplicate:
Equivalent to text-shadow in IE
我有这个文字影子,在Safari工作很好,但在IE却不行。我怎么才能对Safari和IE产生同样的影子效应呢?
<a class="feast_info" title="title">feast</a>
.feast_info {
cursor: pointer;
color: green;
text-shadow: 2px 2px 2px #303030;
}
旧版的 Internet Explorer 不执行 CSS 的构造。 您可以在您的 CSS 中使用它 :
<强>因特网探索者8: 强>
#text_block_id {
-ms-filter: "progid:DXImageTransform.Microsoft.DropShadow(OffX=3, OffY=3, Color=#99cc99)";
}
<强度 > 因特网探索器5.5-7: 强度>
#text_block_id {
filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=3, OffY=3, Color=#99cc99);
}
在您的 CSS 中添加这两条线, 您将得到支持的互联网探索者 5. 5 到 8 支持 。
text-shadow
没有得到 IE 的支持, 但有些建议 < a href=> http://www.hohotocreate.co.uk/textshadow.html> rel="no follow" >这里 来模拟效果。 要完全公平, < a href=> http://jsfiddle.net/ovfiddle/fRNkT/2/" rel="no follow", 结果并不令人印象深刻 。
我强烈建议坚持优雅的降解概念,放弃对不支持这些观点的浏览器的非关键影响。 如果这是绝对必须的(即品牌识别),如果其应用范围允许(即必须只存在于一个地方),您可以将预发内容作为插图提供给独立电子产品。
这将在最常见的浏览器 应用 text-shadow
(见下文测试列表) :
<强 > CSS 强 >
text-shadow: 1px 1px 2px #444444;
filter: dropshadow(color=#444444, offx=1, offy=1);
filter: shadow(color=#444444,direction=135,strength=2);
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#444444,direction=135,strength=2)";
<强 > 测试: 强 >
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!