How to fix the width of table in ie8 and chrome

How to fix the width of table in ie8 and chrome
When the above settings are used in IE8 and Chrome, the display is consistent with the maximum width of the screen, and the width of each column is not fixed. Generally speaking, for a commercial system, the general style needs to be consistent regardless of the browser.

What's a good way to fix it?

The first method is to set the width of the entire table to the sum of the columns.

The second method is to set the table title bar and the corresponding data column to the same width.

There may be other good approaches. I don't know much about CSS. I don't have much experience in screen programming. Still need to learn more.

<<:  52 SQL statements to teach you performance optimization

>>:  How to implement element floating and clear floating with CSS

Recommend

In-depth explanation of MySQL isolation level and locking mechanism

Table of contents Brief description: 1. Four char...

Example of troubleshooting method to solve Nginx port conflict

Problem Description A Spring + Angular project wi...

Docker image creation Dockerfile and commit operations

Build the image There are two main ways to build ...

Specific method of viewing user authorization information in mysql

Specific method: 1. Open Command Prompt 2. Enter ...

CocosCreator Universal Framework Design Network

Table of contents Preface Using websocket Constru...

Application examples of WeChat applet virtual list

Table of contents Preface What is a virtual list?...

Web Design: The Accurate Location and Use of Massive Materials

Three times of memorization allows you to remembe...

Front-end JavaScript Promise

Table of contents 1. What is Promise 2. Basic usa...

Some suggestions on Vue code readability

Table of contents 1. Make good use of components ...

Examples of using temporary tables in MySQL

I've been a little busy these two days, and t...

Example of deploying MySQL on Docker

Table of contents 1 What is container cloud? 2 In...

How to write DROP TABLE in different databases

How to write DROP TABLE in different databases 1....

How to allow external network access to mysql and modify mysql account password

The root account of mysql, I usually use localhos...

VMWare virtual machine 15.X LAN network configuration tutorial diagram

Recently, I have been working on several virtual ...