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)
<br />Adding pictures reasonably can make a ...
This article example shares the specific code of ...
Tencent QQ’s homepage has been redesigned, and Web...
Table of contents 1. Register an account on Baidu...
No matter you are installing Windows or Linux ope...
Basic concepts of consul Server mode and client m...
Robots.txt is a plain text file in which website ...
Preface I have been summarizing my front-end know...
1 Cause After the project migrated the database a...
The operating environment of this tutorial: Windo...
Given an array [1,8,5,4,3,9,2], write an algorith...
MongoDB is a high-performance database, but in th...
Absolute, relative and fixed in position position...
Problem description: The user has a requirement t...
I have learned some basic selectors of CSS before...