阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.Image Resize 中文API文档

      插件 jQuery.Image Resize 中文API文档 https://github.com/adeelejaz/jquery-image-resize

      A super light jQuery plugin (less than 0.5KB) to dynamically resize the images without distorting the proportions or adding any extra HTML.

      Please note you can also resize images using CSS: http://adeelejaz.com/blog/resize-image-without-using-javascript-or-jquery/

      HTML:

      <img class="resizeme" src="sample1.jpg">
      

      JavaScript

      $(function() {
          $( ".resizeme" ).aeImageResize({ height: 250, width: 250 });
      });
      

      Options

      height An integer representing the maximum height for the image.

      width An integer representing the maximum width for the image.

      目录
      本文目录
      目录