看板 [ Ajax ]
討論串[問題] jQuery width()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者no1kk (心中在下雨)時間14年前 (2011/07/07 01:08), 編輯資訊
0
0
0
內容預覽:
var tmp = new Image();. tmp.src = $(this).attr('src'); var img = tmp.width / tmp.height;. 此外 max_w 和 max_h 怎不用 $(this).parent().width(). 來取?. $(this)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者Fantasywind (Fantasywind)時間14年前 (2011/07/06 22:39), 編輯資訊
0
0
0
內容預覽:
$("img.textPic").each(function(){. var max_w = parseInt($(this).parent().css('width').replace("px",'')) - 30;. var max_h = parseInt($(this).parent().c
(還有447個字)
首頁
上一頁
1
下一頁
尾頁