speak

CSS speak Property

The speak property defines whether or not the text should be rendered aurally.

It has six values. The following values are specified in CSS2.1:

  • none

  • normal

  • spell-out

Other values are specified in CSS3:

  • auto

  • never

  • always

The speak property has been deprecated.

类目类目
Initial ValueNot specified.
Applies toAll elements.
InheritedYes.
AnimatableNo.
VersionCSS2, CSS3
DOM SyntaxObject.speak = “always”;

Syntax

Syntax

speak:  auto | normal | spell-out | auto | never | always| initial | inherit;

You can insert the following piece of code with the speak property in your CSS code:

.example {
  speak: none;
}

Values

Values

ValueDescription
noneForbid aural rendering so that the element requires no time to render. This value is specified in CSS2.1.
normalUses language-dependent pronunciation rules for rendering an element and its children. This value is specified in CSS2.1.
spell-outSpells the text one letter at a time which is used for acronyms and abbreviations. This value is deprecated. This value is specified in CSS2.1.
autoResolves to a computed value of ’none’ when ‘display’ is ’none’, otherwise resolves to a computed value of ‘auto’ which yields a used value of ’normal’. This value is specified in CSS3.
neverMakes an element to not be rendered. This value is specified in CSS3.
alwaysThe element is rendered aurally. This value is specified in CSS3.
initialMakes the property use its default value.
inheritInherits the property from its parents element.


请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部