Detailed explanation of compatibility issues and solutions for setting max-width and min-width in table

Detailed explanation of compatibility issues and solutions for setting max-width and min-width in table

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

Recommend

Web designer is a suitable talent

<br />There is no road in the world. When mo...

WeChat applet scroll-view realizes left and right linkage

This article shares the specific code for WeChat ...

64-bit CentOs7 source code installation mysql-5.6.35 process sharing

First install the dependent packages to avoid pro...

HTML5+CSS3 header creation example and update

Last time, we came up with two header layouts, on...

Use Docker to build a Git image using the clone repository

Overview I have been using Docker for more than a...

How to handle super large form examples with Vue+ElementUI

Recently, due to business adjustments in the comp...

Four ways to create objects in JS

Table of contents 1. Create objects by literal va...

In-depth understanding of Worker threads in Node.js

Table of contents Overview The history of CPU-bou...

MySQL parameter related concepts and query change methods

Preface: In some previous articles, we often see ...

Record a slow query event caused by a misjudgment of the online MySQL optimizer

Preface: I received crazy slow query and request ...

How to query and update the same table in MySQL database at the same time

In ordinary projects, I often encounter this prob...

Detailed explanation of Vue's monitoring method case

Monitoring method in Vue watch Notice Name: You s...

Real-time refresh of long connection on Vue+WebSocket page

Recently, the Vue project needs to refresh the da...