After the problem of automatic form filling mentioned in the previous article was solved, I encountered a new problem, which is that some of the page's styles displayed incorrectly under IE. Through the IE developer tool, check the corresponding styles to be present, and compare the local html pages that can be displayed correctly. The styles are basically the same. Except for some font styles that display the font-size style in the developer tool, the others are the same, including margin styles that cause the style to be displayed incorrectly. Finally, it is through the developer tools that the text modes of the two pages are different. The text mode that can be displayed correctly is the standard mode, and the miscellaneous mode when displaying abnormal pages.
When you find the web page source code, because the abnormal web page is decorated through sitemesh, and the decorative page does not define a text mode!DOCTYPE, the browser does not parse the web page through the standard mode.
! Document type (English abbreviation!DOCTYPE, full English name DOCumentTYPE), a!DOCTYPE is a document type declaration of a standard universal markup language. Its purpose is to tell the standard universal markup language parser what kind of document type definition (DTD) it should use to parse documents. It appears as the first line of the file and has the following form:
<!DOCTYPE html
PUBLIC referenced string>
The referenced string is called a public identifier, which refers to the required document type definition (DTD) by a well-known name, usually by a related standard. [1]
Availability:
Specifies whether the official public identifier (FPI) is publicly accessible object or system resource.
The International Internet Engineering Task Force (IETF) and the World Wide Web Alliance (W3C) are not registered ISO organizations.