5条回答 默认 最新
iteye_10436 2014-08-14 20:42关注var $current = $("#slideshow div.current")
在使用find()方法可以找到子元素然后遍历
$current.find("img").each(function(i){
$(this).width();//就是他的宽度});
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
var $current = $("#slideshow div.current")
在使用find()方法可以找到子元素然后遍历
$current.find("img").each(function(i){
$(this).width();//就是他的宽度
});