Home  >  Article  >  Web Front-end  >  CSS play-during property

CSS play-during property

PHPz
PHPzforward
2023-08-25 19:17:081059browse

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>

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

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete