Marquee标记的另类用法

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

运行下面的代码:

<marquee direction="down" width="400" height="80" bgcolor="#f6f6f6">

<marquee direction="right" width="300" height="80%">

网页教学网欢迎您的光临!

</marquee>

</marquee>

再来添加个behavior="alternate"

scroll:是这个参数的默认值,根据direction设置的方向滚动,文本到头的话再重新来过

alternate:marquee的内容根据direction设置的方向滚动到达容器边缘后再按相反的方向滚动回来

,周而复始,形成循环

slid:marquee的内容根据direction设置的方向滚动,到边缘就停止不在滚动(唯一一次)

<marquee direction="up" width="350" height="80" behavior="alternate" bgcolor="#f6f688">

<marquee direction="left" width="300" height="100%" bdhavior="alternate">

网页教学网关于marquee的另类用法

</marquee>

</marquee>

更好的一种效果:

<table bgcolor="#EFEFEF">

<tr><td width="1" valign="top" >

<marquee direction="down" behavior="alternate" scrollamount=1 height="60">

<marquee direction="right" scrollamount=4 behavior="alternate" width="468">

网页教学网演示效果

</marquee>

</marquee>

</td>

<td width="468">

<marquee direction="up" behavior="alternate" scrollamount=1 height="60">

<marquee direction="left" scrollamount=4 behavior="alternate" width="468">

网页教学网关于marquee的另类用法

</marquee>

</marquee>

</td></tr></table>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航