Setting min-width and max-width properties in table <table> <tr><td>1</td><td>2</td></tr> </table> table{min-width:60%;min-width:100%;} But Chrome is not compatible with max-width, and IE7 is not compatible with either. Solution: Wrap a div around the table and set min-width and max-width on the div <div class="table-wrap"> <table> <tr><td>1</td><td>2</td></tr> </table> </div> .table-wrap{width:500px;min-width:60%;min-width:100%;} .table-wrap table{width:100%;} This is the end of this article about the compatibility issues and solutions of setting max-width and min-width in table. For more relevant table max-width and min-width content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: About the pitfalls of implementing specified encoding in MySQL
>>: Tips for efficient use of CSS style sheets: Take full advantage of the power of style sheets
<br />There is no road in the world. When mo...
This article shares the specific code for WeChat ...
First install the dependent packages to avoid pro...
Last time, we came up with two header layouts, on...
Overview I have been using Docker for more than a...
Recently, due to business adjustments in the comp...
Table of contents Current Issues Solution process...
Table of contents 1. Create objects by literal va...
Table of contents Overview The history of CPU-bou...
Preface: In some previous articles, we often see ...
Preface: I received crazy slow query and request ...
In ordinary projects, I often encounter this prob...
Monitoring method in Vue watch Notice Name: You s...
Recently, the Vue project needs to refresh the da...
Table of contents background 1) Enable the keepch...