aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/image-rendering
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/svg/attribute/image-rendering
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/svg/attribute/image-rendering')
-rw-r--r--files/zh-cn/web/svg/attribute/image-rendering/index.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/image-rendering/index.html b/files/zh-cn/web/svg/attribute/image-rendering/index.html
new file mode 100644
index 0000000000..462ec504ed
--- /dev/null
+++ b/files/zh-cn/web/svg/attribute/image-rendering/index.html
@@ -0,0 +1,57 @@
+---
+title: image-rendering
+slug: Web/SVG/Attribute/image-rendering
+tags:
+ - SVG
+ - SVG 属性
+translation_of: Web/SVG/Attribute/image-rendering
+---
+<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
+<p><code>image-rendering</code> 属性向浏览器提供了一个提示,即在图片处理时,如何进行速度 vs 质量之间的权衡。<br>
+ <br>
+ 作为一个显示属性,它也可以在 CSS 样式文件中作为属性而存在,请参考  {{ cssxref("image-rendering","CSS image-rendering") }} 获取更多的信息</p>
+<h2 id="使用语境">使用语境</h2>
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="row">类别</th>
+ <td>Presentation attribute</td>
+ </tr>
+ <tr>
+ <th scope="row">值</th>
+ <td><strong title="this is the default value">auto</strong> | optimizeSpeed | optimizeQuality | inherit</td>
+ </tr>
+ <tr>
+ <th scope="row">动画效果</th>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <th scope="row">规范性文件</th>
+ <td><a class="external" href="http://www.w3.org/TR/SVG11/painting.html#ImageRenderingProperty" title="http://www.w3.org/TR/SVG11/painting.html#ImageRenderingProperty">SVG 1.1 (2nd Edition)</a></td>
+ </tr>
+ </tbody>
+</table>
+<dl>
+ <dt>
+ auto</dt>
+ <dd>
+ 表示用户代理可以在速度和质量间做适当的权衡,但是质量将比速度更重要一些。</dd>
+ <dt>
+ optimizeSpeed</dt>
+ <dd>
+ 表示用户代理应该更注重速度。</dd>
+ <dt>
+ optimizeQuality</dt>
+ <dd>
+ 表示用户代理应该更注重质量</dd>
+</dl>
+<h2 id="示例">示例</h2>
+<h2 id="元素">元素</h2>
+<p>下面的元素可以能够使用 <code>image-rendering</code> 属性</p>
+<ul>
+ <li>{{ SVGElement("image") }}</li>
+</ul>
+<h2 id="参考">参考</h2>
+<ul>
+ <li>{{ cssxref("image-rendering","CSS image-rendering") }}</li>
+</ul>