大家帮我看看这段代码为什么实现不了滚动效果啊

来源:百度知道 编辑:UC知道 时间:2024/09/24 03:49:02
<marquee onmouseover=this.stop() onmouseout=this.start() scrollAmount=1.5 width=145 height=170 direction=up>
<span class="style21"><a href="ILBOT_About/life/life.html">文字滚动内容一</a></span>…<br>
<br>
<span class="style21">文字滚动内容二span> </a>
</marquee>
你的意思是 </a>
</marquee>
这2个都不要了?
后面没有</marquee>
还能实现滚动吗?

onmouseover=this.stop() onmouseout=this.start()
改为:
onmouseover="javascript:stop()" onmouseout="javascript:start()"
而且缺乏代码规范:<span class="style21"><a href="ILBOT_About/life/life.html">文字滚动内容一</a></span>…<br>
<br>
<span class="style21">文字滚动内容二span> </a>
改为:
<span class="style21"><a href="ILBOT_About/life/life.html">文字滚动内容一</a></span>…<br>
<br>
<span class="style21">文字滚动内容二 <span>