如何动态调整文本大小以适应元素以防止拉伸

How would I resize text dynamically to fit into an element for the purpose of preventing a stretch?

本文关键字:元素 何动态 动态 文本 调整      更新时间:2023-09-26

不管怎样,我都希望文本所在元素的高度为100px。如果有一个段落拉伸了元素,我该如何收缩它,直到它完全融入框中?

碰巧我写了一个jQuery插件来解决这个问题。这是链接。

http://code.google.com/p/jquery-fit-text-to-height/