我有一個1024×768圖像jQuery的實際圖像diamension
<span class="frame">
<img alt="Image" title="Image" src="hD41120CA-7164-11DF-A79E-F4CE462E9D80_Green_Sea_Turtle.jpg">
</span>
和下面CSS設置圖像寬度
.frame img{
width:425px;
}
而jQuery代碼
$('.uploaded_image img').attr("width");
返回425
我如何檢索實際JavaScipt中的圖像寬度1024?
http://stackoverflow.com/questions/318630/get-real-image-width-and-height-with-javascript-in-safari-chrome – Adam 2010-06-06 18:25:18