Text overflow can only happen on block or inline-block level elements, because the element needs to have a width in order to be overflow-ed. The overflow happens in the direction as determined by the direction property or related attributes.
- via: https://css-tricks.com/almanac/properties/t/text-overflow/
设置
a { display: inline-block; }
即可。在给a设置的时候,加上display: inline-block;