资 源 简 介
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