html隐藏属性

tech2023-01-19  130

html隐藏属性

描述 (Description)

Using the hidden attribute (set to “true”), it is possible to hide any visual element that may otherwise appear with the embedded content. Typically it may be used for audio content whereby not including the attribute would result in the transport controls (play, pause, etc) being visible underneath the audio.

使用hidden属性(设置为“ true”),可以隐藏任何可能随嵌入内容一起出现的视觉元素。 通常,它可用于音频内容,其中不包括属性将导致在音频下方可见传输控件(播放,暂停等)。

(Example)

The hidden attribute set to "true" to hide the transport control on some audio:

hidden属性设置为"true"以隐藏某些音频上的传输控件:

<embed src="Crash.wav" hidden="true"></embed>

(Value)

“true” or “false” only.

仅“ true ”或“ false ”。

翻译自: https://www.sitepoint.com/hidden-html-attribute/

html隐藏属性

最新回复(0)