CSS 的 text-shadow 效率和 box-shadow 一样差吗?
Is CSS's efficiency with text-shadow as bad as box-shadow?
我在多年的网页设计中发现,CSS的box shadow非常耗费资源,导致很多旧手机卡顿严重;但文字阴影就是这种情况吗?什么时候可以使用文本阴影,它是如何渲染的?
CSS's box shadow is enormously expensive with resources and causes many old phones to lag severely; but is that is the case with text-shadow?
我想简短的回答是肯定的:text-shadow 和 box-shadow 一样昂贵。
这篇文章似乎证实了文本阴影会导致性能问题:http://codeincomplete.com/posts/2011/8/11/noglow/。
还有这个问题似乎相关并且有一个公认的答案:text-shadow (and other css3) causes scroll lag。
When is it okay to use text-shadow
我想这取决于您的受众以及他们是否拥有足够强大的硬件。
…and how is it rendered?
这似乎要求提供可能 browser/platform-specific 的实施细节,......并且可能与大部分问题无关。 :)
我在多年的网页设计中发现,CSS的box shadow非常耗费资源,导致很多旧手机卡顿严重;但文字阴影就是这种情况吗?什么时候可以使用文本阴影,它是如何渲染的?
CSS's box shadow is enormously expensive with resources and causes many old phones to lag severely; but is that is the case with text-shadow?
我想简短的回答是肯定的:text-shadow 和 box-shadow 一样昂贵。
这篇文章似乎证实了文本阴影会导致性能问题:http://codeincomplete.com/posts/2011/8/11/noglow/。
还有这个问题似乎相关并且有一个公认的答案:text-shadow (and other css3) causes scroll lag。
When is it okay to use text-shadow
我想这取决于您的受众以及他们是否拥有足够强大的硬件。
…and how is it rendered?
这似乎要求提供可能 browser/platform-specific 的实施细节,......并且可能与大部分问题无关。 :)