Home  >  Article  >  Web Front-end  >  How to use CSS to solve the problem of too many fonts in table tr th and table tr td

How to use CSS to solve the problem of too many fonts in table tr th and table tr td

php中世界最好的语言
php中世界最好的语言Original
2018-03-09 15:41:382974browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn