<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>纯CSS超过宽度显示省略号</title>
    <style type="text/css">
        *{margin:0;padding:0;font-size:12px;font-family:"新宋体";}
        ol{background:url() no-repeat left -2px;}
        li{position:relative;padding:0 60px 0 20px;height:20px; overflow:hidden; line-height:20px; width:250px;list-style:none;}
        li a{position:relative;background: url(http://www.codefans.net/jscss/demoimg/201107/pot.gif) no-repeat 230px top;display:inline-block; text-decoration:none; color:#000; padding-right:12px; margin-right:10px;}
        li a:hover{text-decoration:underline;}
        li a em{width:10px; height:18px; overflow:hidden;background:#FFF; position:absolute;right:0; bottom:0;text-indent:-999px;}
        li span{position:absolute; padding-left:5px; color:#CCC;}
    </style>
  </head>
<body>
  <ol>
    <li>
        <a href="#">红歌练演员,我们走在大路上<em>...</em></a>
        <span>2011-6-21</span>
    </li>
    <li>
        <a href="#">源码爱好者提供编程源码、网站源码、网页素材、书籍教程、网站模板、网页特效代码等,做有质量的学习型源码下载站。<em>...</em></a>
        <span>2011-6-21</span>
    </li>
  </ol>
</body>
</html>