非常教程

SVG参考手册

属性 | Attributes

color-profile(彩色轮廓)

color-profile属性用于定义通过<image>元素包含的栅格图像应使用哪种颜色配置文件。

作为一个表现属性,它也可以作为一个属性直接在一个CSS样式表中使用,请参阅css color-profile查看更多信息。

用法上下文

Categories

Presentation attribute

Value

auto | sRGB | <name> | <IRI> | inherit

Animatable

Yes

Normative document

SVG 1.1 (2nd Edition)

auto——这是默认行为。除非在内容数据中指定了更精确的嵌入式配置文件,否则所有颜色都被假定为在sRGB色彩空间中定义。对于在数据中包含配置文件的图像,将使用该配置文件。对于没有配置文件的图像,使用sRGB配置文件。

sRGB——源配置文件假定为sRGB。这与auto不同,它覆盖了图像中的嵌入式配置文件。

<name>——一个与浏览器的颜色配置文件描述数据库中定义的颜色配置文件相对应的名称。浏览器在颜色配置文件描述数据库中搜索名称描述符匹配的颜色配置文件描述条目<name>并使用找到的最后匹配条目。如果找到匹配项,则相应的配置文件将覆盖图像内的嵌入式配置文件。如果找不到匹配,则使用图像内嵌入的配置文件。

<IRI> ——对源颜色配置文件的IRI引用。引用的颜色配置文件覆盖图像内的嵌入式配置文件。

实例

使用的元素

以下元素可以使用该color属性

  • <image> 指的是光栅图像

属性 | Attributes相关

1.accent-height(焦点高度)
2.accumulate(积累)
3.additive
4.alignment-baseline(对齐基线)
5.ascent
6.attributename(属性名字)
7.Attributes(属性)
8.attributetype(属性类型)
9.azimuth(方位)
10.basefrequency
11.baseline-shift(基线漂移)
12.baseprofile
13.begin(开始)
14.bias(偏压)
15.calcmode
16.class
17.clip(剪辑)
18.clip-path(剪辑路径)
19.clip-rule(剪辑规则)
20.clippathunits
21.color(颜色)
22.color-interpolation(彩色插值)
23.color-interpolation-filters(色彩插值滤波器)
24.color-rendering(显色)
25.contentscripttype
26.contentstyletype
27.cursor(光标)
28.cx
29.cy
30.d
31.diffuseconstant
32.direction(方向)
33.display(显示)
34.divisor
35.dominant-baseline(显性基线)
36.dur
37.dx
38.dy
39.edgemode
40.elevation
41.end
42.externalresourcesrequired
43.fill
44.fill-opacity
45.fill-rule
46.filter
47.filterres
48.filterunits
49.flood-color
50.flood-opacity
51.font-family
52.font-size
53.font-size-adjust
54.font-stretch
55.font-style
56.font-variant
57.font-weight
58.fr
59.from
60.fx
61.fy
62.gradienttransform
63.gradientunits
64.height
65.href
66.image-rendering
67.in
68.in2
69.k1
70.k2
71.k3
72.k4
73.kernelmatrix
74.kernelunitlength
75.kerning
76.keysplines
77.keytimes
78.lengthadjust
79.letter-spacing
80.lighting-color
81.limitingconeangle
82.local
83.marker-end
84.marker-mid
85.marker-start
86.markerheight
87.markerunits
88.markerwidth
89.mask
90.maskcontentunits
91.maskunits
92.max
93.min
94.mode
95.numoctaves
96.opacity
97.operator
98.order
99.overflow
100.overline-position
SVG

可缩放矢量图形是基于可扩展标记语言(标准通用标记语言的子集),用于描述二维矢量图形的一种图形格式。它由万维网联盟制定,是一个开放标准。