求助各位打下,我的HTML里有这么几张图片
<img src="./The Web Gallery_files/.jpg" alt="Mark" style = "display;"
width = "350" height = "350" class = "image" id = "show_src"/>
            
               
            <img src="./The Web Gallery_files/wls4.jpg" alt="Jeff" style = "display:none;"
width = "350" height = "350" class = "image"/>
                
<img src="./The Web Gallery_files/jle-2007.jpg" alt="Jeff" style = "display:none;" 
width = "350" height = "350" class = "image"/>
<img src="./The Web Gallery_files/sun.png" alt="sun" style = "display:none;"
width = "350" height = "350" class = "image" id = "show_src"/>用Jquery的selector选择所有tag==img的,然后选取特定的某张图片,应用,fadeIn和fadeOut 可是当JS里的程序是$(".image").fadeIn('50');
或者
$("img.image").fadeIn('50');都可以让三张图片一起fadeIn 
但 $(".image")[index].fadeIn('50'); 或者 $(".image").eq(index).fadeIn('50');还是$(".image:eq(index)").fadeIn('50');都没有作用了,index表示我想fadeIn哪张,请高手指点我一下如何fadeIn特定的图片?我能得到index

解决方案 »

  1.   

    就是用eq()啊。
    $(".image").eq(1).fadeIn('50');
      

  2.   

    同意,看看JQuery 文档怎么使用
      

  3.   

    $(".image")[index]这样得到的是js对象了,不是jquery对象,因此没有fadeIn方法的,你应该这样写$($(".image")[index]).fadeIn('50'),这样就可以了。
      

  4.   

    我自己解决了, 加了</img>就行了 估计是tag上的问题