日期:2014-05-17 浏览次数:20727 次
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> <script> $(function(){ $('A').each(function() { var txt = $(this).text(); if (txt.length > 30) { $(this).text(txt.substr(0,30)+'...'); } }); }); </script> </head> <body> <a href="http://www.sina.com.cn">http://blog.fusioncharts.com/2009/05/export-your-charts-as-images-or-pdfs/</a> <a href="http://topic.csdn.net/u/20120807/10/b506f0b5-2c1e-40e9-bfbc-72c3f882c157.html?99499">http://topic.csdn.net/u/20120807/10/b506f0b5-2c1e-40e9-bfbc-72c3f882c157.html?99499</a> </body> </html>
------解决方案--------------------
<div style="width: 10px; overflow: hidden;"><a href="http://www.baidu.com/">ssssssssssssssssdddddddddddddd</a></div>
试试这个,不行的话,大哥请你吃饭!
------解决方案--------------------
<tr><td colspan="2"><div style="width: 10px; overflow: hidden;"><a href="http://www.baidu.com/">ssssssssssssssssdddddddddddddd</a></div></td></tr>