在DIV里面,添加一个img标签,然后用JS企图控制它运动,从左到右,从右到左。运行出来岿然不动。同样的在BODY添加img然后用JS控制其运动就成。难道是DIV没有这种功能?是我太SB,还是太异想天开?代码在这个论坛里有http://bbs.51cto.com/thread-960751-1.html

解决方案 »

  1.   

    最简单的就是放个marquee标签。你不能动是你代码有问题,不是标签的关系。
      

  2.   


      <marquee direction="right" onmousemove="this.stop()" onmouseout="this.start()" scrollAmount="1" scoreDelay="4" style="width: 90%; height: 180px;" >
                              <div>//你的img标签 </div></marquee>                                                         
      

  3.   


      <marquee direction="right" onmousemove="this.stop()" onmouseout="this.start()" scrollAmount="1" scoreDelay="4" style="width: 90%; height: 180px;" >
                              <div>你的img标签 </div></marquee>
      

  4.   

    可以啊,应该没有问题吧。position要设置成absolute吧。
      

  5.   

    用js控制img 在div 的位置。。