标签体会

来源:互联网 发布:java switch if 编辑:程序博客网 时间:2024/06/11 16:20

 

一、先看一段代码:

<marquee direction="up" behavior="alternate" scrollamount=3 height="210">
         <marquee direction="right" scrollamount=5 behavior="alternate" width="380"><b style="font-size:24px "  style="color: #99CC00">O(∩_∩)O~</b><br>&nbsp;&nbsp;&nbsp;&nbsp;<b><font style="font-size:24px "color=cc0000>欢迎</b></marquee>
           <marquee direction=left behavior=alternate scrollamount=3><b style="font-size:24px "  style="color: #ff6600">O(∩_∩)O~</b><br>&nbsp;<b><font style="font-size:24px "color=cc0000>光临</b></marquee>
   </marquee> 

 

二、小试一下:

试试1:

<marquee>呵呵O(∩_∩)O~</marquee>

试试2:

<marquee direction="up">呵呵O(∩_∩)O~</marquee>

<marquee>属性

 

三、文字移动属性的设置:

 

1.方向 <direction=#> #=left, right,up,down

          <marquee direction=right>啦啦啦,我从左向右移!</marquee>

 

2.方式 <bihavior=#> #=scroll, slide, alternate

 

  <marquee behavior=scroll>啦啦啦,我一圈一圈绕着走!</marquee>

   <marquee behavior=slide>啦啦啦,我只走一次就歇了!</marquee>

   <marquee behavior=alternate>啦啦啦,我来回走耶!</marquee>

 

3.循环 <loop=#> #=次数;若未指定则循环不止(infinite)

 

  <marquee loop=3  behavior=scroll>啦啦啦,我只走 3 趟哟!</marquee>

 

   <marquee loop=3 behavior=slide>啦啦啦,我只走 3 趟哟!</marquee>

 

   <marquee loop=3 behavior=alternate>啦啦啦,我只走 3 趟哟!</marquee>

 

4.  速度 <scrollamount=#>

  

<marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>  

 

5.  延时 <scrolldelay=#>

  <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>

四、外观(Layout)设置

6.对齐方式(Align) <align=#> #=top, middle, bottom

 

 

 

 

 

  <font size=6>

       <marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
  </font>
7.底色 <bgcolor=#> #=rrggbb 16 进制数码,或者是下列预定义色彩:
 

   <marquee bgcolor=aaaaee>啦啦啦,我会移动耶!</marquee>

 

8.面积 <height=# width=#>

  <marquee height=40 width=50% bgcolor=aaeeaa>啦啦啦,我会移动耶!</marquee>

 

9.空白(Margins)<hspace=# vspace=#>

 

  <marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle>啦啦啦,我会移动耶!</marquee>

原创粉丝点击