39-marquee標簽
隨便寫點內容隨便寫點內容隨便寫點內容隨便寫點內容
隨便寫點內容隨便寫點內容
隨便寫點內容
隨便寫點內容 隨便寫點內容 
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>39-marquee標簽</title> <style> marquee { width:200px; height:200px; background-color: skyblue; } </style> </head> <body> <!-- 1.什么是marquee標簽? 作用: 跑馬燈 格式: <marquee>內容</marquee> 屬性: direction: 設置滾動方向 left/right/up/down scrollamount: 設置滾動速度, 值越大就越快 loop: 設置滾動次數, 默認是-1, 也就是無限滾動 behavior: 設置滾動類型 slide滾動到邊界就停止, alternate滾動到邊界就彈回 注意點: marquee標簽不是W3C推薦的標簽, 在W3C官方文檔中也無法查詢這個標簽, 但是各大瀏覽器對這個標簽的支持非常好 --> <!--滾動方向--> <marquee>隨便寫點內容</marquee> <marquee direction="right">隨便寫點內容</marquee> <marquee direction="up">隨便寫點內容</marquee> <marquee direction="down">隨便寫點內容</marquee> <hr> <!--設置滾動速度--> <marquee scrollamount="1">隨便寫點內容</marquee> <marquee scrollamount="100">隨便寫點內容</marquee> <hr> <!--設置滾動次數--> <marquee loop="1">隨便寫點內容</marquee> <hr> <!--設置滾動類型--> <marquee behavior="slide">隨便寫點內容</marquee> <marquee behavior="alternate">隨便寫點內容</marquee> <marquee> <img src="images/NJ.jpg" width="50px"> </marquee> </body> </html>
