jQuery Textfill问题

时间:2014-10-23 16:21:17

标签: jquery google-chrome

我正在使用https://plugins.jquery.com/textfill/中的jquery textfill插件。最初用我的mac编码镀铬,一切都很好。当我在镀铬的窗户上检查它时,它并没有完全填满div。我可以看到它的功能,它显示了

<span style="font-size:5px;">

但完全填充容器应为9。当我在firefox中的同一台计算机上测试同一页面时,它运行得很完美。问题是什么?

<header>
<script type="text/javascript" src="js/jquery_1.5.2.js"></script>
<script type="text/javascript" src="js/jquery.textfill.min.js"></script>

<script type='text/javascript'>//<![CDATA[ 
function init() {
$('#bottomstufffinal').textfill({
    debug: true,
    maxFontPixels: 20
});
}

$(init);
</script>

</header>

...体

<div id="bottomstufffinal" style="width: 311px;height: 40px;">
<span><?  echo $list1; ?><br><? echo $list2; ?></span>
</div>

1 个答案:

答案 0 :(得分:0)

删除table-layout:fixed;适合我