diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/svg/attribute/enable-background | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/svg/attribute/enable-background')
-rw-r--r-- | files/zh-cn/web/svg/attribute/enable-background/index.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/enable-background/index.html b/files/zh-cn/web/svg/attribute/enable-background/index.html new file mode 100644 index 0000000000..0d54c98265 --- /dev/null +++ b/files/zh-cn/web/svg/attribute/enable-background/index.html @@ -0,0 +1,74 @@ +--- +title: enable-background +slug: Web/SVG/Attribute/enable-background +translation_of: Web/SVG/Attribute/enable-background +--- +<div>{{SVGRef}} {{deprecated_header("SVG 2")}}</div> + +<p>该<strong><code>enable-background</code></strong>属性指定如何管理背景图像的累积。</p> + +<p class="note"><strong>注意:</strong>作为演示文稿属性,<code>enable-background</code>可以用作CSS属性。</p> + +<p>作为表示属性,它可以应用于任何元素,但仅对以下11个元素有效:{{SVGElement("a")}},{{SVGElement("defs")}},{{SVGElement("字形")}},{{SVGElement("g")}},{{SVGElement("marker")}},{{SVGElement("mask")}},{{SVGElement("missing-glyph")}},{{SVGElement("pattern")}},{{SVGElement("svg")}},{{SVGElement("switch")}}和{{SVGElement("symbol")}}}</p> + +<h2 id="上下文注释">上下文注释</h2> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">值</th> + <td><code>accumulate</code>| <code>new</code>[ <code><x></code> <code><y></code> <code><width></code> <code><height></code>]?</td> + </tr> + <tr> + <th scope="row">默认值</th> + <td><code>accumulate</code></td> + </tr> + <tr> + <th scope="row">可动画的</th> + <td>没有</td> + </tr> + </tbody> +</table> + +<dl> + <dt><code>accumulate</code></dt> + <dd> + <p>如果祖先容器元素的属性值为<code>enable-background: new</code>,则当前容器元素内的所有图形元素都将呈现到父容器元素的背景图像画布上以及目标设备上。</p> + + <p>否则,没有当前的背景图像画布,因此图形元素仅渲染到目标设备上。</p> + </dd> + <dt><code>new [ <x> <y> <width> <height> ]?</code></dt> + <dd> + <p>该值使当前容器元素的子代能够访问背景图像。</p> + + <p>它还指示建立了新的(即最初为透明的黑色)背景图像画布,并且实际上,除了将当前容器元素的所有子对象呈现到目标设备上之外,还应将其呈现到新的背景图像画布中。</p> + + <p>The optional <code><x></code>, <code><y></code>, <code><width></code>, and <code><height></code> parameters are <code><a href="/en-US/docs/Web/SVG/Content_type#Number"><number></a></code> values that indicate the subregion of the container elementʼs user space where access to the background image is allowed to happen. Those values act as a clipping rectangle on the background image canvas.<br> + Negative values for <code><width></code> or <code><height></code> are forbidden. If one, two, or three values are specified or if neither <code><width></code> nor <code><height></code> are specified, the <code>BackgroundImage</code> and <code>BackgroundAlpha</code> of a filter primitive are processed as if background image processing were not enabled.</p> + </dd> +</dl> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName("SVG1.1", "filters.html#EnableBackgroundProperty", "enable-background")}}</td> + <td>{{Spec2("SVG1.1")}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<div class="hidden">此页面上的兼容性表是根据结构化数据生成的。如果您想提供数据,请查看<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>并向我们发送请求请求。</div> + +<p>{{Compat("svg.attributes.presentation.enable-background")}}</p> |