IE has had problems for a long time. When everyone was tested, everyone was smiling, but it was just grinning... Alas, there is no way, because the domestic market is full of such grinning browsers... ( pay attention to the death speed of IE678 ) After checking, reading, excerpting, recording, practicing and summarizing one by one, I finally had a fundamental understanding of the cause of his bad habit. hasLayout !First the definition: It is a unique property of IE. It determines whether an element either calculates the size and organizes its own content, or relies on the parent element to calculate and organize the content. To distinguish these two concepts, the rendering engine uses the hasLayout attribute, true or false. When the attribute is true, we say that this element triggers layout. Tags with hasLayout attribute : <html>, <body>, <table>, <tr>, <td>, <td>, <img>, <hr>, <input>, <button>, <select>, <textarea>, <fieldset>, <legend>, <iframe>, <embed>, <object>, <applet>, <marquee>What is the significance of this attribute? When the layout of an element object is activated, the positioning and size calculation of it and its child elements will be performed independently, that is, independent layout, so the browser will consume more costs to process elements with layout. In order to improve performance, IE has come up with this private property. CSS features that can trigger hasLayout: Copy code The code is as follows:display: inline-block height: (any value except auto) width: (any value except auto) float: (left || right) position: absolute writing-mode: tb-rl zoom: (any value except normal) IE7 can trigger the hasLayout CSS feature: Copy code The code is as follows:min-height: (any value) min-width: (any value) max-height: (any value except none) max-width: (any value except none) overflow: (any value except visible, only for block-level elements) overflow-x: (any value except visible, only for block-level elements) overflow-y: (any value except visible, only for block-level elements) Position:fixed Let's take a look at the clinical manifestations of crooked mouth and slanted eyes : (The following contents are all tested by myself)
|
<<: Detailed process of SpringBoot integrating Docker
>>: Use JS to operate files (FileReader reads --node's fs)
Table of contents 1. Introduction 2. GitHub 3. Ba...
Table of contents Project Introduction: Project D...
Table of contents 1. React Basic Usage Notable Fe...
MYSQL 5.6 Deployment and monitoring of slave repl...
By default, MySQL character types are not case-se...
Find the installation directory of VirtualBox. Th...
Table of contents Overview Problem Description Ci...
Overview As for the current default network of Do...
Use the FRAME property to control the style type ...
Installation environment: CentOS7 64-bit, MySQL5....
Nested use of MySQL ifnull I searched online to s...
The 404 problem occurs in the Tomcat test. The pr...
Set the width of the body to the width of the wind...
Implementation of navigation bar, fixed top navig...
Table of contents Preparation Install VMware Work...