CSS cue-after屬性用於定義在元素之後播放的聽覺圖標,以區分和設置元素。
用法:
cue-after:url | none ;
參數:該屬性接受上述和以下所述的兩個值:
- url:此參數保存聽覺圖標資源。如果用戶無法渲染提到的聽覺圖標,則它將產生其他提示,例如鈴聲。
- none:此參數定義不使用聽覺圖標。
範例1:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
.gfg {
cue-after:none;
}
</style>
</head>
<body style="text-align:center;">
<h1 style="color:green;">GeeksforGeeks</h1>
<p class="gfg">CSS cue-after Property</p>
<audio controls>
<source src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190625153922/frog.mp3"
type="audio/mp3">
</audio>
</body>
</html>
輸出:
範例2:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
.gfg {
cue-after:url("bell.wav");
}
</style>
</head>
<body style="text-align:center;">
<h1 style="color:green;">GeeksforGeeks</h1>
<p class="gfg">CSS cue-after Property</p>
<audio controls>
<source src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190625153922/frog.mp3"
type="audio/mp3">
</audio>
</body>
</html>
輸出:
支持的瀏覽器:CSS3中已棄用此屬性,因此該屬性不支持主要的瀏覽器
相關用法
- CSS transition-property用法及代碼示例
- CSS table-layout用法及代碼示例
- CSS text-align用法及代碼示例
- CSS border-top-width用法及代碼示例
- CSS isolation屬性用法及代碼示例
- CSS border-inline-start-style屬性用法及代碼示例
- CSS column-rule-width用法及代碼示例
- CSS word-spacing用法及代碼示例
- CSS animation-delay用法及代碼示例
- CSS margin-top用法及代碼示例
- CSS grid屬性用法及代碼示例
- CSS font-size-adjust用法及代碼示例
- CSS visibility屬性用法及代碼示例
- CSS grid-template-columns用法及代碼示例
- CSS height屬性用法及代碼示例
- CSS transform-origin用法及代碼示例
- CSS animation-name用法及代碼示例
- CSS flex-wrap用法及代碼示例
- CSS align-content用法及代碼示例
- CSS page-break-before屬性用法及代碼示例
- CSS empty-cells用法及代碼示例
注:本文由純淨天空篩選整理自skyridetim大神的英文原創作品 CSS cue-after Property。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。