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
CSS to achieve the image hovering mouse folding e...
Table of contents Common functions of linux drive...
Table of contents 1. beforeCreate and created fun...
Regarding the connection method between Java and ...
1. Table structure TABLE person id name 1 you 2 Y...
I like to pay attention to some news on weekdays a...
Angularjs loop object properties to achieve dynam...
Preface Nginx is a lightweight HTTP server that u...
Preface When we deploy applications to servers as...
Table of contents explain: Summarize Replenish Un...
Before further analyzing why MySQL database index...
I believe everyone has played scratch tickets. Wh...
1. Get the mysql image docker pull mysql:5.6 Note...
Preface In order to reflect the difference betwee...
1. Preparation 1.1 harbor download harbor downloa...