废话少说,看了效果就知道我要说什么了
<html>
<head>
<style>
a
{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
width:100px;
}
a:hover
{
overflow:auto;
color: #c00;
text-decoration: underline;
width:auto;
white-space:normal;
overflow:break-all;
}
</style>
</head>
<body>
<div style=" width:100px; border:1px solid #000000;overflow:break-all;word-break:break-all">
<li><a href="http://blog.csdn.net/civerb"/>做网站开发,遇到技术难题怎么办?来“幻世录”看吧,你能获取到很大收获哦。http://blog.csdn.net/civerb</a>
</li>
</div>
</body>
</html>