Text blinking jQuery

后端 未结 30 1990
我寻月下人不归
我寻月下人不归 2020-11-27 03:23

What is an easy way to make text blinking in jQuery and a way to stop it? Must work for IE, FF and Chrome. Thanks

30条回答
  •  盖世英雄少女心
    2020-11-27 03:42

    You can also use the standard CSS way (no need for JQuery plugin, but compatible with all browsers):

    // Start blinking
    $(".myblink").css("text-decoration", "blink");
    
    // Stop blinking
    $(".myblink").css("text-decoration", "none");
    

    W3C Link

提交回复
热议问题