zoukankan      html  css  js  c++  java
  • 页面滚动marquee标签

    页面滚动用js可以实现,但是一个html标签marquee却可以轻松实现

    但是有一个html标签 - <marquee></marquee>可以实现多种滚动效果,无需js控制。

    使用marquee标记不仅可以移动文字,也可以移动图片,表格等.

    语法:<marquee>需要移动的内容</marquee>;

    属性:

     direction             移动方向,包括up down  left right

    behavior              移动方式,包括scroll 循环滚动,默认值   slide只滚动一次停止   alternate来回交替进行滚动

    scrollamount       滚动速度,以像素为单位

    scrolldelay          滚动延迟,以毫米为单位

    loop                    循环次数,默认-1,无限循环

    width height       滚动范围

    bgcolor               滚动背景颜色

    hspace、vspace 空白空间

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head>
    <body><div><marquee direction="up" behavior="scroll" scrollamount="1" scrolldelay="0" loop="-1" width="1000" height="50" bgcolor="#0099FF" hspace="10" vspace="10">
    指整个Marquee对齐方式; (2)behavior:设置滚动的方式: scroll:表示由一端滚动到另一端,会重复,缺陷是不能无缝滚动。 slide:表示由一段滚动到另一端,不会重复...</marquee></div></body></html>
  • 相关阅读:
    python dict
    用Python requests beautifulSoup 获取并显示中文信息
    Python information to learn
    Python 中的异常
    Python 中的函数
    安装Linux系统Fedora 23
    (转)开源协议的比较
    WizNote for linux installation
    linux下编译bib、tex生成pdf文件
    NLP学术组织、会与论文
  • 原文地址:https://www.cnblogs.com/fengsantianya/p/5560154.html
Copyright © 2011-2022 走看看