js代码
<script type="text/javascript" src="src/adapttext.js"></script> <script type="text/javascript"> document.addEventListener('DOMContentLoaded', function() { new AdaptText(document.getElementById('my-container'), { callback: function(newFontSize) { console.log('new font-size is ', newFontSize); } }); }); </script>
在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载