<!DOCTYPE html
>
<
html
lang=
"en"
>
<
head
>
<
meta
charset=
"UTF-8"
>
<
meta
name=
"viewport"
content=
"width='device-width', initial-scale=1.0"
>
<
meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<
title
>Document
</
title
>
</
head
>
<
style
>
p {
height:
40px;
width:
200px;
text-align:
center
}
p::after{
content:
'...'
}
<
/
style
>
<
body
>
<
p
id=
'artical'
>几乎是负担看到老师发还是肯定会发生还是看回放还是看了回复你不看精彩的
</
p
>
</
body
>
<
script
>
var
op=
document.
getElementById(
'artical');
op.
innerHTML=
op.
innerHTML.
slice(
0,
19)+
'...'
<
/
script
>
</
html
>