首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > jQuery插件适合文本高度

jQuery插件适合文本高度

  • 资源大小:3.17 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: javascript jquery css ui Layout

资 源 简 介

This plugin is can be used to automatically re-size the text within specified elements to fit into a desired scrollHeight value. This can be useful for cases where you have a fixed-height layout element that contains dynamically populated text that you do not want to trigger an overflow condition. This plugin works by iteratively decreasing the elements" font-size value until the content fits within the scrollHeight value specified. Additionally, the plugin can optionally vertically "re-center" the elements after resizing is complete such the they maintain the same vertically-centered position within their containing parent as they did prior to resizing. This can be useful if the original CSS-specified height for the element is less than the specified allowable scrollHeight value (i.e. the elements can grow some from the original size but must still be less than or equal to some larger size to fit within a parent container). This "re-centering" i
VIP VIP
0.189813s