Custom text-overflow CSS?

后端 未结 3 1251

I am aware this is possible via Javascript, as I have done it myself. However, as the platform I am building up gets bigger and bigger, I want to take as much JS heavy-load

3条回答
  •  暖寄归人
    2020-12-18 23:17

    Mozilla has gone ahead and proposed this syntax, and it's made an appearance in the early 2012 LC draft of the UI level 3 spec:

    text-overflow: ' ..';
    

    Or if you meant to append .. to the existing ellipsis:

    text-overflow: '... ..';
    

    However, there are no other known implementations yet besides Mozilla's own, and as such this syntax is at risk of being dropped from a later revision of the spec.

提交回复
热议问题