怎么让Marquee的滚动事件 默认就不滚动,当我把鼠标移到Marquee上 就会滚动了,默认滚动
2条回答 默认 最新
renkai721 2019-08-27 18:11关注试下这个
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <script> function f(){ document.getElementById("mId").stop(); } </script> <body onload="f()"> <marquee id="mId" behavior="scroll" bgcolor="#FF0000" direction="left" height="100" width="600" onMouseOut="this.stop()" onMouseOver="this.start()" />我是marquee。</marquee> </body> </html>解决 无用评论 打赏 举报