From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/svg/attribute/image-rendering/index.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 files/zh-cn/web/svg/attribute/image-rendering/index.html (limited to 'files/zh-cn/web/svg/attribute/image-rendering') 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 +--- +

« SVG Attribute reference home

+

image-rendering 属性向浏览器提供了一个提示,即在图片处理时,如何进行速度 vs 质量之间的权衡。
+
+ 作为一个显示属性,它也可以在 CSS 样式文件中作为属性而存在,请参考  {{ cssxref("image-rendering","CSS image-rendering") }} 获取更多的信息

+

使用语境

+ + + + + + + + + + + + + + + + + + + +
类别Presentation attribute
auto | optimizeSpeed | optimizeQuality | inherit
动画效果Yes
规范性文件SVG 1.1 (2nd Edition)
+
+
+ auto
+
+ 表示用户代理可以在速度和质量间做适当的权衡,但是质量将比速度更重要一些。
+
+ optimizeSpeed
+
+ 表示用户代理应该更注重速度。
+
+ optimizeQuality
+
+ 表示用户代理应该更注重质量
+
+

示例

+

元素

+

下面的元素可以能够使用 image-rendering 属性

+ +

参考

+ -- cgit v1.2.3-54-g00ecf