淘宝网滚动公告代码详解。
其实它就是网页设计时移动文字的代码了。各位亲们一定注意:下面给出的是源代码,是要在源代码模式下编辑输入哦!
代码:<marquee>你看我会移动哦!</marquee>
效果:
代码:
<marquee>你看我会从右向左移!</marquee>
<marquee direction="right">你看会我从左向右移!</marquee>
<marquee direction="up">你看我会从下向上移!</marquee>
<marquee direction="down">你看我会从上向下移!</marquee>
效果:
代码:
<marquee>你看我会一圈一圈绕着走!</marquee>
<marquee behavior="alternate">你看我会来回走!</marquee>
效果:
代码:<marquee scrollamount="20">你看我走得好快哦!</marquee>
效果:
代码:<marquee scrollamount="100" scrolldelay="500">你看我走走停停!</marquee>
效果:
#=rrggbb16 进制数码,或者是下列预定义色彩:
Black,Olive,Teal,Red,Blue,Maroon,Navy,Gray,Lime,
Fuchsia,White,Green,Purple,Silver,Yellow,Aqua
代码:<marquee bgcolor="#aaaaee">你看我会移动而且还有背景色哦! </marquee>
效果:
代码:<marquee bgcolor="#aaeeaa" height="40" width="50%">你看我会移动 而且宽度只占一半哦!</marquee>
效果:
好啦,大家学会了吗?