<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在DIV+CSS中设置列表(li)超出部分显示省略号</title>
<style type="text/css">
li {
400px;
margin:0 auto;
list-style:none;
line-height:28px;
}
.li_title {
260px;
white-space:nowrap;
text-overflow:ellipsis;
overflow: hidden;
float:left;
}
.li_time {
100px;
float:right;
}
</style>
</head>
<body>
<ul>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题Div CSS布局 常见问题</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题Div CSS布局 常见问题</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题Div CSS布局 常见</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题Div</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
<li><span class="li_title"><a href=" # "> • Div CSS布局 常见问题Div CSS布局</a></span><span class="li_time"><a href="#">[2012-3-9]</a></span></li>
</ul>
</body>
</html>