Rumah  >  Artikel  >  hujung hadapan web  >  请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose

请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose

WBOY
WBOYasal
2016-06-24 11:50:341084semak imbas

如题代码和报错信息贴出  请大神指点!

<div id="link">		<img  src="img/link.jpg" height="100px"    style="max-width:90%" alt="请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<marquee scrollAmount=2 scrollDelay=0 behavior=alternate width=595 height=70 onMouseOver="this.stop()" onMouseOut="this.start()">		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"baidu.com" alt="请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		<img  height=35 src="img/sinaLogo.png"    style="max-width:90%"请大神指教,关于marquee鼠标移入移出报错问题_html/css_WEB-ITnose" >		</marquee>		<span style="color:#999;font-size:12px;">Copyright2015 <a href="#">caipiaotj.com<a/> All Rights Reserved</span>	</div>


运行时报错!




这是html的申明
<!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>


回复讨论(解决方案)



图片抹去了,还把代码贴上.



图片抹去了,还把代码贴上.





跑题了

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

不抱错啊.

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

不抱错啊.





你这代码我贴上去试了   一样  鼠标移入  移出都报。  你HTML怎么申明的  贴上来看看

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

不抱错啊.



<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

不抱错啊.








找到原因了  浏览器内核不支持!  不建议用这个容器

和声明没有关系,
快快更新浏览器.

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn