Home > Article > Web Front-end > How to adjust the td width in table_html/css_WEB-ITnose
Why is the width I set different from the actual width?
Some are longer and some are shorter? ? ?
The table is a whole, and the width of each column td is determined by the width of the longest td.
As for why it is different, I don’t know how your code is written. .
Use css or rowspan, colspan
The outside is a percentage, and the inside is also a percentage.
For example:
This way. Then write a few fields with clear width expectations, and the other fields can be wider to let them adapt. There are hidden dangers in setting the width by default It might be better to add this 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 Previous article:Front-end development artifact sublime code emmet quick writing configuration file storage location_html/css_WEB-ITnoseNext article:Front-end development artifact sublime code emmet quick writing configuration file storage location_html/css_WEB-ITnose Related articlesSee more |