Explorer中模拟文本笔划

Explorer中模拟文本笔划

本文介绍了在Internet Explorer中模拟文本笔划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有浏览器,除了Internet Explorer(即使是IE9测试版,显然)支持 text-shadow ,此外,webkit浏览器似乎理解 -webkit-text-stroke 。但是如何在Internet Explorer中模拟文本笔画?我看过可用的过滤器,在我看来,没有一个可以用来模拟这个,除了也许从辉光,但它创建一个模糊的光辉,而不是一个坚实的轮廓。

All browsers, with the exception of Internet Explorer (even the IE9 beta, apparently) support text-shadow, and additionally, webkit browsers seem to understand -webkit-text-stroke. But how to emulate text stroke in Internet Explorer? I've had a look at the available filters and it seems to me that none can be used to simulate this, apart maybe from Glow, but it creates a blurry glow, not a solid outline.

有没有办法使用CSS和/或Microsoft过滤器/行为和/或JavaScript实现这一点?

Is there any way to achieve this using CSS and/or Microsoft filters/behaviours and/or JavaScript?

我不需要解决方案在IE的旧版本工作,我的布局不会被优化为IE7或更早。

I don't need the solution to work in ancient versions of IE, my layout isn't going to be optimised for IE7 or earlier.

推荐答案

我从一开始就挖了一下:

There's this here that I dug up from a while back:http://jsfiddle.net/kovalchik/yJff9/

我无法测试它是否真的有效,因为我目前使用的是mac。它看起来像一个脏的黑客以及。但它可能值得一试:P

I can't test if it actually works or not though since I'm using a mac at the moment. It looks like a bit of a dirty hack as well. But it might be worth a try :P

这篇关于在Internet Explorer中模拟文本笔划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 02:14