IE8 compatibility notes I encountered

IE8 compatibility notes I encountered
1. IE8's getElementById only supports id, not name
For example: <input type="text" name="txt1">
Use in IE8: var obj = document.getElementById("txt1");
At this time obj will be equal to null

2. The <button> tag in IE8 will submit the Form by default, because the type of the <button> tag in IE8 is submit by default, so either set type=button or set onclick to return false;

<<:  Web Design: When the Title Cannot Be Displayed Completely

>>:  Solve the problem of setting Chinese language pack for Docker container

Recommend

JavaScript Basics Variables

Table of contents 1. Variable Overview 1.1 Storag...

In-depth analysis of the Tomcat server of Centos 7 system

Table of contents 1. The origin of tomcat 1. Tomc...

Solve the mobile terminal jump problem (CSS transition, target pseudo-class)

Preface Many friends who have just come into cont...

Analysis of three parameters of MySQL replication problem

Table of contents 01 sql_slave_skip_counter param...

Implementation of react routing guard (routing interception)

React is different from Vue. It implements route ...

Even a novice can understand the difference between typeof and instanceof in js

Table of contents 1. typeof 2. instanceof 3. Diff...

Summary of the three stages of visual designer growth

Many people have read this book: "Grow as a ...

WEB standard web page structure

Whether it is the background image or the text siz...

How to run a project with docker

1. Enter the directory where your project war is ...

JavaScript to achieve text expansion and collapse effect

The implementation of expanding and collapsing li...

How to deploy SpringBoot project using Docker

The development of Docker technology provides a m...

Not all pop-ups are rogue. Tips on designing website pop-ups

Pop-up news is common in domestic Internet servic...