在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jquery-textfill/jquery-textfill开源软件地址:https://github.com/jquery-textfill/jquery-textfill开源编程语言:JavaScript 89.2%开源软件介绍:jQuery TextFillThis jQuery plugin resizes text to make it fit into a container. The font size gets as big as possible. Usage
<script src="jquery.min.js"></script>
<script src="jquery.textfill.min.js"></script>
<div id='my-element' style='width:100px;height:50px;'>
<span>The quick brown fox jumps over the lazy dog</span>
</div>
$('#my-element').textfill({
...options...
}); OptionsRemember, container means the parent element, while child is the
element that will resize. On the example above, the parent was the
For example, <script>
$(function() {
$('#my-element').textfill({
maxFontPixels: 36
});
});
</script> Callbacks
For example, <script>
$(function() {
$('#my-element').textfill({
success: function() {
console.log("yay!")
},
fail: function() {
alert("boo hoo!")
}
});
});
</script> ContributingYou are very welcome to contribute! A good number of people did, so feel free to help no matter how small the changes might be. Just make sure to read the file Also, there we lay down our rules for reporting issues and making pull requests. Gotcha! Now you can't say we didn't tell you about it! If you found something critical or just want to make a suggestion open an issue and start typing right away. CreditsThis jQuery plugin was created by Russ Painter around May 2009, beginning with a StackOverflow question. In very early 2012, Yu-Jie Lin helped to move the project to GitHub with version 0.1 and obtained the clearly stated open source licensing from Russ. Around July 2014 Alexandre Dantas was made a contributor. License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论