Skip to content

devjam/jquery.imgFit.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jquery.imgFit.js

Copyright (c) Devjam / SHIFTBRAIN INC.
Licensed under the MIT license.
https://github.com/devjam

DEMO

http://devjam.github.com/jquery.imgFit.js/


画像の縦横比率を崩さず指定範囲内に拡大縮小するだけの簡単なプラグイン

REQUIRE:

jquery.js

PARAMETERS:

area:null(null=$(this).parent())
maxWidth: null
maxHeight: null
minWidth: null
minHeight: null
align:"center" ["left", "center", "right"]
valign:"middle" ["top", "middle", "bottom"]
autoResize: true

USAGE:

$("img.fit").imgFit();

METHOD:

resize

Forcibly resize

PARAMETERS:

null

USAGE:

$("img.fit").imgFit.resize();

About

画像の縦横比率を崩さず指定範囲内に拡大縮小するだけの簡単なプラグイン

Resources

Stars

1 star

Watchers

10 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors