http://wangking717.javaeye.com/blog/769021function DrawImg(imgId,boxWidth,boxHeight){var imgWidth=$("#"+imgId).width();var imgHeight=$("#"+imgId).height();//比较imgBox的长宽比与img的长宽比大小if((boxWidth/boxHeight)=(imgWidth/imgHeight)){//重新设置img的width和height$("#"+imgId).width((boxHeight*imgWidth)/imgHeight);$    Read More
posted @ 2010-12-28 10:33
七郎
Views(209)
Comments(0)
Diggs(0)
        
                    
                
浙公网安备 33010602011771号