autosize

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

  • 所有者: jackmoore/autosize
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Summary

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

Browser compatibility

Chrome, Firefox, IE, Safari, iOS Safari, Android, Opera Mini, Windows Phone IE
------, --------, ----, --------, ------------, ---------, ------------, ------------------
yes, yes, 9, yes, yes, 4, ?, 8.1

Usage

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

// from a NodeList
autosize(document.querySelectorAll('textarea'));

// from a single Node
autosize(document.querySelector('textarea'));

// from a jQuery collection
autosize($('textarea'));

Released under the MIT License

主要指标

概览
名称与所有者jackmoore/autosize
主编程语言JavaScript
编程语言HTML (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2011-11-06 19:21:21
推送于2023-02-15 07:30:24
最后一次提交2023-02-13 17:15:25
发布数86
最新版本名称6.0.1 (发布于 )
第一版名称1.15.0 (发布于 2013-01-17 12:22:43)
用户参与
星数5.1k
关注者数122
派生数701
提交数238
已启用问题?
问题数312
打开的问题数22
拉请求数34
打开的拉请求数5
关闭的拉请求数60
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?