CSS 提示属性

原文:https://www.geeksforgeeks.org/css-cue-property/

它是提示前和提示后属性的简写版本。它指定在元素之前或之后播放听觉图标,以区分和设置元素。

语法:

cue: <cue-before> <cue-after>?

属性值:

  • CSS cue-before: It is used to define an auditory icon played before the element to distinguish and set the element.

    语法:

    html cue-before: url|none;

    示例:

    ```html <!DOCTYPE html>   

                    .gfg {              cue-before: url("bell.wav");          }         

          

    GeeksforGeeks

          

    CSS cue-before Property

                       

      ```

    输出:

  • CSS cue-after: It is used to define an auditory icon played after the element to distinguish and set the element.

    语法:

    html cue-after: url | none ;

    示例:

    ```html <!DOCTYPE html>   

                    .gfg {              cue-after: url("bell.wav");          }         

          

    GeeksforGeeks

          

    CSS cue-after Property

                       

      ```

    输出: