控制一行文字超出部分显示省略号
作者:admin 日期:2009-12-30
代码"/> 程序代码[color=#0000ff]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>taoper.com</title>
<style type="text/css">
<!--
li {
width:200px;
white-space:nowrap;
text-overflow:ellipsis;
overflow: hidden;
}
-->
</style>
</head>
<body>
<ul>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
</ul>
</body>
</html>[/color]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>taoper.com</title>
<style type="text/css">
<!--
li {
width:200px;
white-space:nowrap;
text-overflow:ellipsis;
overflow: hidden;
}
-->
</style>
</head>
<body>
<ul>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
<li><a href="http://www.taoper.com#">taoper.com - Div CSS布局 常见问题</a></li>
</ul>
</body>
</html>[/color]
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags: