• marquee标签属性详解(跑马灯文字效果)


    <!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 loop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=300 width=30% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 此处输入滚动内容 </marquee>
      </div>
    </body>
    </html>

    • ◎ direction表示滚动的方向,值可以是left,right,up,down,默认为left 
    • ◎ behavior表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(往返滚动) 
    • ◎ loop表示循环的次数,值是正整数,默认为无限循环 
    • ◎ scrollamount表示运动速度,值是正整数,默认为6 
    • ◎ scrolldelay表示停顿时间,值是正整数,默认为0,单位似乎是毫秒 
    • ◎ align表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle 
    • ◎ bgcolor表示运动区域的背景色,值是16进制的RGB颜色,默认为白色 
    • ◎ height、width表示运动区域的高度和宽度,值是正整数(单位是像素)或百分数,默认width=100% height为标签内元素的高度 
    • ◎ hspace、vspace表示元素到区域边界的水平距离和垂直距离,值是正整数,单位是像素。
    • ◎ onmouseover=this.stop() onmouseout=this.start()表示当鼠标以上区域的时候滚动停止,当鼠标移开的时候又继续滚动
  • 相关阅读:
    RfcDestinationManager.UnregisterDestinationConfiguration时报错cannot unregister the given destination configuration
    SVN文件自动加锁-Win7
    linux 命令详解 sort
    Tensorflow的采样方法:candidate sampling(zhuan)
    (转载)机器学习中的目标函数、损失函数、代价函数有什么区别
    tensorflow dropout
    textcnn
    tensorflow学习笔记(三十九):双向rnn
    sklearn one_hot 操作
    sklearn 划分数据集。
  • 原文地址:https://www.cnblogs.com/queende7/p/8668616.html
Copyright © 2020-2023  润新知