CSS play-during property

PHPz
Release: 2023-08-25 19:17:08
forward
1105 people have browsed it

CSS play-during 属性

This attribute specifies the sound that plays in the background while the element's contents are spoken. Possible values ​​can be any of the following -

  • ##URI - This specifies the sound to be played in the background while the element's content is
  • mix - When present, this keyword means that the sound inherited from the parent element's play-during attribute continues to play and that the sound specified by uri is mixed with it. If mix is not specified, the element's background sound replaces the parent element's background sound.
  • repeat - When present, this keyword means that the sound will repeat if it is too short to fill the entire duration of the element. Otherwise, the sound plays once and then stops.
  • auto - The parent element's sound continues to play.
  • None >− This keyword means mute.
Example

You can try to use the following code to implement the CSS play-during property -

<style>
   <!--
      blockquote.sad { play-during: url("violins.aiff") }
      blockquote q { play-during: url("harp.wav") mix }
      span.quiet { play-during: none }
   -->
</style>
Copy after login

The above is the detailed content of CSS play-during property. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template