美文网首页
marquee实现首尾相连循环滚动效果

marquee实现首尾相连循环滚动效果

作者: 阿羡吖 | 来源:发表于2018-03-15 09:37 被阅读0次

    代码如下:

    <marquee behavior="scroll" contenteditable="true" 
    onstart="this.firstChild.innerHTML+=this.firstChild.innerHTML;" 
    scrollamount="3" width="100" onmouseover="this.stop();"
     onmouseout="this.start();"> 
    这里是要滚动的内容 
    </marquee>
    

    相关文章

      网友评论

          本文标题:marquee实现首尾相连循环滚动效果

          本文链接:https://www.haomeiwen.com/subject/hnpcqftx.html