元素填充 jQuery 插件:Fit.js

jopen 10年前

Fit.js 是一款帮助用户把一样东西填充到另一个东西里面的 jQuery 插件。比如:foo --> bar

fit( bar, foo, {            // Alignment      hAlign: fit.CENTER, // or fit.LEFT, fit.RIGHT      vAlign: fit.CENTER, // or fit.TOP, fit.BOTTOM            // Fit within the area or fill it all (true)      cover: false,            // Fit again automatically on window resize      watch: false,            // Apply computed transformations (true) or just      // return the transformation definition (false)      apply: true  });

元素填充 jQuery 插件:Fit.js

项目主页:http://www.open-open.com/lib/view/home/1390659031664