liu.html
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>刘</title>
<link rel = "stylesheet" type = "text/css"
href = "MyHtml.css">
</script>
</head>
<body>
<p>王俊凯王俊凯刘欣静刘欣静刘欣静了馈线卡是否
</p>
</body>
</html>
liu.css
*{
padding:0;
margin:0;
}
p{
width:300px;
height:20px;
line-height:20px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}