javascript - marquee 标签在 google chrome 的悬停效果上不起作用

标签 javascript jquery html css google-chrome

我使用了marquee标签。这个悬停效果标签在 Mozilla 中工作良好但在谷歌浏览器中不起作用悬停效果。我已经尝试过这个解决方案。

<marquee direction="up" height="250px" onmouseover="javascript:this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);">
  
  text
  </marquee>

请提出任何其他解决方案。

最佳答案

用这个代替它:

onmouseover="this.stop();" onmouseout="this.start();"

<marquee direction="up" height="250px" onmouseover="this.stop();" onmouseout="this.start();">
  
  text
  </marquee>

关于javascript - marquee 标签在 google chrome 的悬停效果上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36303648/

相关文章:

html - 为什么页面显示 "scroll memory"?

javascript - 如何避免react-router中的404页面?

javascript - 禁用链接几秒钟

html - CSS 规则 : Give style to all with children

javascript - 使用ajax显示图像乱码

javascript - 查找 DOM 中哪个元素被单击

html - 手机的wordpress导航

java - iMacros for loop POS={{k}} k 不持有整数值/存储问题

javascript - JavaScript 中的属性初始化

javascript - 从开发到测试再到生产的 API 路径不同。如何避免在部署之间进行更改?