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

A quick solution to accidentally delete MySQL data (MySQL Flashback Tool)

Overview Binlog2sql is an open source MySQL Binlo...

css Get all elements starting from the nth one

The specific code is as follows: <div id="...

Linux system dual network card binding configuration implementation

System version [root@ ~]# cat /etc/redhat-release...

CSS example code to hide the scroll bar and scroll the content

Preface When the HTML structure of a page contain...

How to implement blank space in Taobao with CSS3

Make a blank space for Taobao: When you shrink th...

Tutorial on how to modify element.style inline styles

Preface When we were writing the web page style a...

js simple and crude publish and subscribe sample code

What is Publish/Subscribe? Let me give you an exa...

Vue.js implements the code of clicking the icon to zoom in and leaving

The previous article introduced how Vue can reali...

Example code for Html layered box-shadow effect

First, let’s take a look at the picture: Today we...

Pure CSS to achieve cloudy weather icon effect

Effect The effect is as follows ​ Implementation ...

Vue implements accordion effect

This article example shares the specific code of ...

How to use nodejs to write a data table entity class generation tool for C#

Although Microsoft provides T4 templates, I find ...