Please wait a minute...
设为首页 | 加入收藏  
= FitWidth/FitHeight){ if(image.width>FitWidth){ ImgD.width=FitWidth; ImgD.height=(image.height*FitWidth)/image.width; }else{ ImgD.width=image.width; ImgD.height=image.height; } } else{ if(image.height>FitHeight){ ImgD.height=FitHeight; ImgD.width=(image.width*FitHeight)/image.height; }else{ ImgD.width=image.width; ImgD.height=image.height; } } } } $(document).ready(function(){ $(".figureClass").colorbox({rel:'figureClass', transition:"none", width:"80%", height:"80%"}); $(".inline").colorbox({inline:true, width:"80%"}); });
Please wait a minute...
设为首页 | 加入收藏