文本溢出边界显示为省略号
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*此方法FireFox5.0尚不支持*/
.box{
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
background-color: greenyellow;
}
</style>
</head>
<body>
<div class="box">
<a href="#">文本溢出边界显示为省略号</a>
</div>
</body>
</html>