CSS 音高范围属性
CSS 音高范围属性用于设置声音的频率范围。会有一个限制,这样用户就不会有任何听力问题。
语法:
pitch-range: number;
参数:该属性接受如上所述的单个参数,如下所述:
- No.: The frequency number stored in this parameter can be in the range of 0-100.
示例 1:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
audio {
pitch-range: 75;
}
</style>
</head>
<body style="text-align: center;">
<h1 style="color: green;">GeeksforGeeks</h1>
<p>CSS pitch-range Property</p>
<audio controls>
<source src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190625153922/frog.mp3"
type="audio/mp3">
</audio>
</body>
</html>
版权属于:月萌API www.moonapi.com,转载请注明出处