Use the tbody element when defining the table to ensure that all browsers, including IE, can use it correctly Even if the table does not display the defined tbody element, the browser will consider it tr The parent node of the node is an automatically added default tbody node. In order to avoid possible misunderstandings when using javascript to manipulate the tr node, it is better to add one manually, such as:
tbody>
Pay attention to the capitalization of tags and attributes Sometimes, some events bound to elements respond in IE browsers , but it does not respond in safari or other browsers. At this time, you need to check the correctness of the event binding method. For advanced event binding, you need to write two sets of javascript to distinguish between IE and other browsers. For simple event models, you need to pay attention to the case of the bound event name. For example:
You should use lowercase onfocus here, and add the label closing symbol displayed. This is the standard way of writing.
Pay attention to the attribute value setting of the label The language and type attributes of the