图片放大,第一张可以,第二张就不行了,这里是遍历的,怎么能拿到遍历出来的图片都能放大?

 <div class="control-group">
    <label class="control-label">报损图片:</label>
        <div class="controls">
            <c:forEach var="deviceFixingpic" items="${deviceFixing.pic}">
                 <ul id="menu">
                 <li><img id="deviceFixingpic" src="${deviceFixingpic.url}" style="height: 100px"></li> 
                  </ul>
            </c:forEach>
        </div>
    </div> 
 $(function(){
            $('#deviceFixingpic').click(function(){
             var width = $(this).width();
             if(width==100)
             {
                 $(this).width(200);
                 $(this).height(300);
             }
             else
             {
                 $(this).width(100);
                 $(this).height(150);
             }
        });
        });

 $('img').click(function(){
                $(this).css({xxxxxxxxx });//想怎么设置都可以
})

$('img').click(function(){
$(this).xxxxx//写东西
});