首页前端开发HTMLhtml5实现文字轮滚的示例代码

html5实现文字轮滚的示例代码

时间2024-01-23 03:09:14发布访客分类HTML浏览446
导读:收集整理的这篇文章主要介绍了html5实现文字轮滚的示例代码,觉得挺不错的,现在分享给大家,也给大家做个参考。接下来介绍一下marquee标签marquee标签是实现文字轮滚的大功臣常用属性如下:directory 指明轮滚方向(默认向左)...
收集整理的这篇文章主要介绍了html5实现文字轮滚的示例代码,觉得挺不错的,现在分享给大家,也给大家做个参考。接下来介绍一下marquee标签

marquee标签是实现文字轮滚的大功臣

常用属性如下:

directory 指明轮滚方向(默认向左)

behavior 指明轮滚方式(默认是scroll)

Hspace 指明元素到区域的水平距离

Vspace 指明元素到区域的垂直距离

loop 指明循环次数(默认-1表示无限循环)

下面是我做的一个小栗子,大家可以试一试哦

htML>
        head>
            tITle>
     文字轮滚/title>
            meta charset="utf-8">
        /head>
        body>
        p align=center>
    marquee Hspace=6 scrollamount=3 width=200 height=40 bgcolor=red scrolldelay=1 behavior="scroll" directory="right">
    我是Cabby****人送外号白菜姐/marquee>
    /p>
         p align=center>
    marquee Hspace=6 scrollamount=5 width=200 height=40 bgcolor=yellow scrolldelay=0 behavior=alternate>
    啦啦啦啦啦啦啦/marquee>
    /p>
        p align=center>
    marquee Hspace=6 scrollamount=3 width=200 height=40 bgcolor=red scrolldelay=1 behavior="scroll" directory="right" loop=-1>
    我是Cabby****人送外号白菜姐/marquee>
    /p>
         p align=center>
    marquee Hspace=6 scrollamount=5 width=200 height=40 bgcolor=yellow scrolldelay=0 behavior=alternate loop=-1>
    啦啦啦啦啦啦啦/marquee>
    /p>
        p align=center>
    marquee Hspace=6 scrollamount=3 width=200 height=40 bgcolor=red scrolldelay=1 behavior="scroll" directory="right">
    我是Cabby****人送外号白菜姐/marquee>
    /p>
        /body>
        /html>
    

以上就是html5实现文字轮滚的示例代码的详细内容,更多请关注其它相关文章!

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

h5html5

若转载请注明出处: html5实现文字轮滚的示例代码
本文地址: https://pptw.com/jishu/583703.html
html5中返回AudioTrackList对象的属性audioTracks 必会的移动端Html5的基础知识点

游客 回复需填写必要信息