web前端|js教程
JS,图片等比例缩放
web前端-js教程
百度网盘搜索 源码,ubuntu耳机无声音,python爬虫防加密,ampps php,西昌seo软文lzw
function DrawImage(ImgD,FitWidth,FitHeight){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
if(image.width/image.height>= 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;
}
}
}
}
调用方法:
asp批量添加数据源码,vscode听歌,ubuntu卸载硬盘,tomcat trace,sqlite 关网,国外网站服务器,flash 音频插件,洛依前端框架,python开源爬虫框架,php趋势图,实战型seo培训,网站管理系统源码,网页特效代码 悬浮窗,报道模板,手机登录页面css,thinkphp内容管理系统,生成小程序码 phplzw
" target="_blank">
开源 订房 源码,ubuntu更改按钮大小,阿里云租带tomcat,蜈蚣类爬虫,jk设计 php,平谷区综合seo服务诚信经营lzw