厂商 :无锡晴川机床有限公司总部
江苏 无锡- 主营产品:
- 韩国斗山数控机床
- 数控龙门铣床加工中心
- 德玛吉DMG数控机床
联系电话 :15365228369
商品详细描述
供应江苏高精度导轨磨床厂家
MKW53系列定梁数控龙门导轨(平面)磨床 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
function AutoSize(ImgD,MaxWidth,MaxHeight)
{
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0)
{
flag=true;
if(image.width/image.height>= MaxWidth/MaxHeight)
{
if(image.width>MaxWidth)
{
ImgD.width=MaxWidth;
ImgD.height=(image.height*MaxWidth)/image.width;
}
else
{
ImgD.width=image.width;
ImgD.height=image.height;
}
//ImgD.alt="原始尺寸:宽" + image.width+",高"+image.height;
}
else
{
if(image.height>MaxHeight)
{
ImgD.height=MaxHeight;
ImgD.width=(image.width*MaxHeight)/image.height;
}
else
{
ImgD.width=image.width;
ImgD.height=image.height;
}
//ImgD.alt="原始尺寸:宽" + image.width+",高"+image.height;
}
}
} ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
相关产品推荐