前端基礎-HTML文字滾動

2020-3-7    seo達人

1.文字滾動

<html>

<head>

<title>我的第一個頁面</title>

</head>

<body>

<marquee behavior="scroll" direction="up" height="30" style="overflow:hidden;" scrollamount="1" width="300" onMouseOver="stop()" onMouseOut="start()">

雷電黃色預警!<br />

大雨黃色預警!<br />

</marquee>

</body>

</html>



direction:方向



up:上 down:下 left:左 right:右



scrollamount:滾動速度-----------------scroll:滾動 amount:數(shù)值



width:寬度 height:高度



onmouseover:當鼠標移上去



onmouseout:當鼠標離開



stop():停止



start():開始



behavior:



scroll 循環(huán)滾動



alternate 來回滾動



slide 滾動一次停止




分享本文至:

日歷

鏈接

個人資料

藍藍設計的小編 http://sillybuy.com

存檔