EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

contentStyleType attribute | contentStyleType property

[contentStyleType may be altered or unavailable in subsequent versions of the operating system or product.]

Gets the default style sheet language of the current document.

Scalable Vector Graphics: Document Structure, Section 5.11.2Internet Explorer 9

Syntax

HTML
<element contentStyleType="p" ... >
JavaScript
p = object.contentStyleType

Property values

Type: String

The default style sheet language of this document.

Exceptions

ExceptionCondition
NoModificationAllowedError

An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned.

Standards information

Remarks

Do not set the contentStyleType property. If you try to set this property, it causes an error.

Because CSS is the only common language for inline styling, and because CSS is the default language if you do not specify the contentStyleType property, all browsers do not support this property well. As a result, the contentStyleType property and its corresponding attribute are deprecated. You should not use this property in new content. Future versions of the SVG specification might remove this property.

See also

SVGSVGElement

 

 

Mostrar:
© 2014 Microsoft