简体   繁体   中英

Auto Resize Text to Fit Form Input with jQuery

I'm looking for a method, using jQuery, to change the font size in a form input field so that no matter how much the user types, it is always visible and fits. In other words, to start with a font size of 13px and when the text reaches the width of the input field, the font size progressively gets smaller to accommodate.

I've found many methods of resizing the field itself, but not the text. Hopefully one of you who know jQuery better than I can help out.

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM