enable-background属性的作用是什么? [英] What exactly does the enable-background attribute do?

查看:143
本文介绍了enable-background属性的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

enable-background属性的作用是什么?

What exactly does the enable-background attribute do?

我阅读了规范,但我仍然不理解.

I read the specification but still I don't understand it.

推荐答案

应该使背景图像可用于指定元素的子元素,以用于诸如将内容与背景混合的滤镜效果.可能还有其他用途,但这就是我所知道的用途.

It's supposed to make the background image available to child elements of the element it's specified on for things like filter effects that blend content with the background. There may be other uses, but that's the one I know.

如果未设置,则从技术上讲,该元素不能使用祖先创建的背景.

If you don't have it set, then technically the element can't use backgrounds created by ancestors.

唯一支持它的主流浏览器是IE10 +,因此并没有得到太多使用. (没有充分的理由,它也可以作为Illustrator SVG每次导出中的样板.)

The only major browser that supports it is IE10+, so it doesn't get used very much. (It's also there as boilerplate in every Illustrator SVG export - for no good reason.)

这篇关于enable-background属性的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆