(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

stroke property

Sets or retrieves a value that indicates the color to paint along the outline of a given graphical element.

Scalable Vector Graphics: Painting, Filling, Stroking and Marker Symbols, Section 11.4Internet Explorer 9

Syntax

stroke: none | currentColor | <color> | <funciri> [ none | currentColor | <color> ] | inherit

Property values

none

Default. Indicates that no paint is applied.

currentColor

Indicates that painting is done using the current animated value of the color specified by the color property. This enables sharing of color attributes between parent grammars, such as other, non-SVG, XML. This keyword enables you to define a style in your HTML that sets the color property. The keyword then passes that style to Internet Explorer so that your SVG text will draw in the same color.

color

Indicates the explicit color to be used to paint the current object.

Internet Explorer 9 supports all the syntax alternatives for the CSS color property. (For a table of colors in CSS, see Color Table.) Internet Explorer 9 also supports the color keyword names recognized by SVG.

funciri

Indicates an Internationalized Resource Identifier (IRI) reference to a paint server such as a gradient or a pattern. If the IRI reference is not valid (for example, it points to an object that does not exist or the object is not a valid paint server), the paint method following the funciri (for example, none, currentColor, or color) is used if provided. Otherwise, the document is in error.

inherit

Indicates that the property takes the same computed value as the property for the element's parent.

CSS information

Applies Toshapes and text content elements
Mediavisual
Inherited1
Initial Valuenone

Standards information

See also

CSSStyleDeclaration
currentStyle
style
SVGCircleElement
SVGEllipseElement
SVGLineElement
SVGPathElement
SVGPolygonElement
SVGPolylineElement
SVGRectElement
SVGTextElement
SVGTextPathElement
SVGTSpanElement
Reference
strokeDasharray
strokeDashoffset
strokeLinecap
strokeLinejoin
strokeMiterlimit
strokeOpacity
strokeWidth
fill

 

 

Anzeigen:
© 2014 Microsoft