$("img").each(function(){
        if($(this).width() > $(this).parent().width()) {
                $(this).width("100%");
        }
});
posted on 2009-05-12 09:09  笑傲江湖  阅读(1144)  评论(1编辑  收藏  举报