Home >Web Front-end >CSS Tutorial >How to use CSS to solve the problem of too many fonts in table tr th and table tr td
This time I will bring you how to use CSS to solve the problem of too many fonts in table tr th and table tr td. The following is a practical case. Let’s take a look at it. .
The control performance is better than js, but in the lower version of firfox, it sometimes displays overlapping bold
table{ table-layout : fixed; }table tbody tr td,table tbody tr th{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
I believe you have mastered the method after reading the case in this article. For more exciting things, please pay attention to php Chinese website Other related articles!
Related reading:
How to solve the BUG of IE11 textarea not wrapping
Detailed explanation of the Counters attribute of css
How to avoid garbled characters in encodeURI(url) in JS?
The above is the detailed content of How to use CSS to solve the problem of too many fonts in table tr th and table tr td. For more information, please follow other related articles on the PHP Chinese website!