取一定長度的字符串(不是個數)

str.innerText太長﹐我不想分行﹐只顯示100px長就可以
如何取?

1<table width="100">
2<tr>
3<td>
4<font id="str" size="3" titile="">   
5dfdsfdsfsd工 大幅度 在在大ddfdfds有伙右黃水有dfdfdsfdsfsdfdsfdsejyjrd   
6</font>
7</td>
8</tr>
9</table>

---------------------------------------------------------------

1<p><textarea cols="51" name="S1" rows="11"></textarea></p>
Published At
Categories with Web编程
comments powered by Disqus