Auto line-height RequiresUseSettingsMore 介绍
Adjusts the line-height of selected elements in proportion to their width,
relative to the font size.
Requires
- jQuery version 1.1.2
- jQEm version 0.2
Use
$(function(){ $('#flexme').autolineheight(); });
Where ‘flexme’ is the id of an element in your page whose contained text is to
be fine tuned.
Settings
You may adjust the default values to your taste and circumstance when you
assign the behavIoUr to an element, for example:
$('#flexme').autolineheight({minWidth:16,minLineHeight:1.2,ratio:.03});
More
Further details can be found on my blog post: Auto line-height: a jQuery
plugin for flexible
layouts
Auto line-height RequiresUseSettingsMore 官网
http://plugins.jquery.com/project/autolineheight
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。