3
A
回答
3
您可以使用標籤創建滾動字幕(即滾動文字或滾動圖像)。它可以完全定製。在你有興趣修改滾動文本的方向和速度,這可能通過添加一些屬性。
例如,一個示例HTML代碼:
<marquee behavior="scroll" direction="left" scrollamount="1">Pace-slow</marquee>
這裏屬性方向可以根據滾動的方向值等向左,向上,向右等和滾動量可以控制速度,更越快。
1
<!-- Scroll Amount -->
<marquee scrollamount="50"> This is a marquee with scrollamount 50 </marquee>
<marquee scrollamount="5"> This is a marquee with scrollamount 5 </marquee>
<!-- Scroll Delay -->
<marquee scrolldelay="50">This is a marquee with scrolldelay 50</marquee>
<marquee scrolldelay="100">This is a marquee with scrolldelay 100</marquee>
<!-- mouse over or click events -->
<marquee onmouseover="this.stop()" onmouseout="this.start()">This marquee will stop on mouseover.</marquee>
<marquee onclick="this.stop()">This marquee will stop on mouseclick. </marquee>
附加參考: enter link description hereenter link description here
相關問題
- 1. Android Viewpager和方向更改
- 2. PageViewController和方向更改
- 3. 方向更改
- 4. 我如何查看方法/步驟中的方向更改android
- 5. Iphone方向更改
- 6. Android方向更改
- 7. 更改方向ANDROID
- 8. 方向更改 - 更新UI
- 9. 文本到語音和方向更改
- 10. onCreateOptionsMenu和onPrepareOptionsMenu不調用方向更改
- 11. 檢測方向和更改類
- 12. 片段和處理方向更改
- 13. 替換碎片和方向更改
- 14. UIPageViewController和離屏方向更改
- 15. Android 2.2.1,方向更改和onDestroy()
- 16. 更改攝像頭和設備方向
- 17. Android,更改文字大小和方向
- 18. UIVIew佈局和方向更改
- 19. UISplitViewController和方向 - iOS <5.0
- 20. 方向更改時更改保證金?
- 21. 更改方向時更改Xml佈局
- 22. 設備方向更改時更改UIImage
- 23. 如何檢測碎片更改和更改方向
- 24. 配置更改ScreenSize和方向停止佈局更改
- 25. 如何更改縱向和橫向的模擬器方向?
- 26. 更改向導步驟按鈕文本
- 27. 更改<style>後jQuery腳本
- 28. 更改HTML <title>標籤的方向從右到左
- 29. 如何在React Native中動態更改<NavigationCardStack />的方向?
- 30. 屏幕方向更改
請看這裏http://www.plus2net.com/html_tutorial/html_marquee_direction.php – Pandian 2013-02-10 18:29:40