Home >Web Front-end >HTML Tutorial >[Migration in 2013] Summary of some DIV adaptations under IE6_html/css_WEB-ITnose

[Migration in 2013] Summary of some DIV adaptations under IE6_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:481237browse

I just wrote down some things I thought of before. In the development of Xinfeng and Liangwang networks, a complete div layout was used. Due to the requirements of the other party, the application bar on the left must be movable, so it can only be used 3-column method. The government also widely uses IE6. In fact, it is better to use table to do

. This exposes an adaptation problem of div under IE6. The default margin-bottom under IE6 is not 0, but There is a fixed number. If you do not specify the div size and related attributes, and let the div automatically adapt under IE6, it is different from Firefox and IE9. The final solution is to specify the size and related attributes for all divs. In fact, the correct method is It is processed at the beginning of development.

There is another problem in the process, that is, some empty divs or tables left during the website development process will cause abnormal display under IE6. Just remove it. But.

There are also issues regarding the backward rendering engine of IE6, the hierarchy of drop-down selection boxes and divs, and the issue of div x-index attributes. The select control of the form under IE6 seems to be at the highest level. , it is probably related to the rendering method, and there is no solution. Including when it is not clicked, the div will not be on the select control no matter how high you set the x-index. However, IE9 and other browsers do not have this problem. The solution is to use js to write the drop-down menu control. This is also the reason why some large websites use homemade drop-down menus.

There are some that everyone knows, so I won’t repeat them. Just pay attention. In fact, It’s not that you can’t use the complete div layout method to develop a website compatible with IE6. If you are inexperienced, you will make a lot of mistakes. Once you are familiar with it, it may still be possible, but it is a bit troublesome. It is best to use tables. In China.
When will IE6 be launched? Just die

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn