text-overflow: ellipsis; the color of the text ellipsis is related to the color set by the node where it is located

E.g:

<div style="color:green;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:500px;">
    <span style="color:yellow;">Xu Chu Zhenhun Street on Zhenhun Street On Xu Chu Zhenshen Street on Xu Chu Zhensoul Street on Xu Chu Zhensoul Street on Xu Chu Zhensoul Street On Xu Chu Zhenshen Street, Xu Chu Zhenshen Street
    , Xu Chu Zhensoul Street Once upon a time there was a Lingjian mountain Once upon a time there was a Lingjian mountain Once upon a time there was a Lingjian mountain Once upon a time there was a Lingjian mountain Once upon a time, there was a Lingjian mountain, once upon a time, there was a Lingjian mountain</span>
</div>

At this time, the color of the ellipsis is green

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326440543&siteId=291194637