<marquee style="WIDTH:340px; HEIGHT:500px; background: url("images/nouvelle2.gif");" 
  onmouseover=stop() onmouseout=start() scrollamount="4" direction="up" loop=infinite deplay="0">这样写为什么背景图片插不进来?

解决方案 »

  1.   

    1、style="WIDTH:340px; HEIGHT:500px; background: url("images/nouvelle2.gif");"  
    中,括起images/nouvelle2.gif的引号将产生歧义,应写作
    style="WIDTH:340px; HEIGHT:500px; background: url(images/nouvelle2.gif);"  2、marquee 的背景将随内容一起滚动。如不是需要的效果,则需将背景至于上层容器
      

  2.   

    补充一下,还是加单引号的好 'images/nouvelle2.gif'
    不加引号会有些css方面的问题
      

  3.   

    图片在marquee中插入在火狐浏览器上实现了,IE浏览器上图片也会滚动;
    如果我在上一级容器中插入背景图片,滚动文字会覆盖住图片,怎样浮在图片上呢?