English 中文(简体)
neon-glow effect in IE8
原标题:

The following css creates a nice neon-glow effect around text

{
    text-shadow: 0em 0em 0.3em white; /* assuming a dark background */
}

However it doesn t work in IE7/8

For a reference, compare this page in Firefox and IE

Is there a way to get a similar effect in it?

最佳回答

Won t work in IE8, since text-shadow is a feature of upcoming CSS3. However you might add a secondary rule for IE7/8, called filter:Glow (invalid CSS syntax, proprietary to Microsoft).

You can get more info on MSDN.

问题回答

As you noticed, text-shadow only works in modern browsers. IE has something that might help in their proprietary filters called glow but I don t know anything beyond that.





相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

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....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签