下面有更多 "亲自试一试" 示例。
这个paint-order
属性指定 SVG 元素或文本的绘制顺序。
笔记:对于文本元素,只能更改描边和填充的顺序,因为标记不适用。
表中的数字指定完全支持该属性的第一个浏览器版本。
Property | |||||
---|---|---|---|---|---|
paint-order | 35.0 | 17.0 | 60.0 | 8.0 | 22.0 |
paint-order: normal|
one value|
two values|
three values|initial|inherit;
Value | Description | Demo |
---|---|---|
normal | Default value. The paint order is fill, stroke, markers. | Demo ❯ |
one value | Painting will start with given value, then continue with the remaining painting in default order. If only "stroke" is given, the next painting activity is fill, then markers. | Demo ❯ |
two values | Painting will start with given values, then continue with the remaining painting in default order. If "stroke markers" are given, the next painting activity will be fill. | Demo ❯ |
three values | Painting will be done according to given values. | Demo ❯ |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
SVG 教程:SVG 教程
HTML SVG 图形:HTML SVG 图形
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!