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)
We can set a background image for the cell, and w...
Table of contents js calling method Android 1.js ...
This article example shares the specific code for...
While working on a Linux server, assigning static...
Table of contents 1. JS Object DOM –1, Function –...
Preface In Linux kernel programming, you will oft...
Table of contents 1. Environmental Preparation 2....
1. Flex is the abbreviation of Flexible Box, whic...
Related reading: MySQL8.0.20 installation tutoria...
Table of contents 1: Prepare https certificate 2:...
cursor A cursor is a method used to view or proce...
Table of contents 1. prototype (explicit prototyp...
Table of contents Nginx proxies two socket.io ser...
There is a business that queries the 5 most recen...
This article shares the specific code of Vue to i...