用CSS把标题超出的部分变成...


<html>
<body>
<style>
.ellipsis span {
   white-space:nowrap;
   text-overflow:ellipsis; /* for internet explorer */
   overflow:hidden;
   width:190px;
   display:block;
}
html>body .ellipsis {
   clear:both;
}
html>body .ellipsis span:after {
   content: "...";
}
html>body .ellipsis span {
   max-width:180px;
   width:auto !important;
   float:left;
}
</style>
<div class="ellipsis">
<span>多特软件站_中国最快最安全的软件下载站_六大杀毒软件检测</span>
</div>
</body>
</html>

 

这个 固然是个好 步骤, 可以不用程序操纵了,并且也容易 批改,但缺点是firefox阅读器不 支撑 。