<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
p{
width: 50px;
height: 20px;
overflow-x: clip;
overflow: hidden;
word-break: keep-all;
word-wrap: break-word;
font-size: 20px;
}
</style>
</head>
<body>
<p>你好1212你好</p>
</body>
</html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
p{
width: 50px;
height: 20px;
overflow-x: clip;
overflow: hidden;
word-break: keep-all;
word-wrap: break-word;
font-size: 20px;
}
</style>
</head>
<body>
<p>你好1212你好</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
p{
width: 50px;
overflow-x: clip;
overflow: hidden;
font-size: 20px;
white-space:nowrap;
}
</style>
</head>
<body>
<p>你好你212你好</p>
</body>
</html>