The method of hack under IE7

Source: Internet
Author: User

Previously in ie5.01, ie5.5, E6, Firefox has shown that the normal page is now encountered IE7, may be displayed differently.
This has a lot to do with IE7 support important.
So now using the simple fold-break
For more specific introduction, look at the HTML introduction bar!!!!

<style>
Div. explorer{
Display:none;
margin:5px;
padding:5px;
width:200px;
line-height:150%;
border:2px #666 Solid;
}
Div. Explorer DL dt{
Font-weight:bold;
}
* * for IE7 hack*/
*+html Div. ie7{
Display:block!important;
Display:none;
}
</style>
<div class= "Explorer ie7″> Note that" *+html "is a CSS in the selector, very fortunate to be IE7 and ie5.01 use, and the distinction between IE7 and ie5.01 there is a very simple way, is important, In this way, the important is written in front, forming a separate approach to IE7 hack. Usually remember the following points, you can avoid many mess compatibility problems
<dl>
<dt> follow apply padding/border and fixed width to the same element at the same time. </dt>
The &LT;DD&GT;IE5 error block model is the culprit, and it makes a mess of things. Although there is a remedy, it is best to circumvent this problem by specifying padding for its parent element when the child element's width is fixed. </dd>
<dt> If you are sure to use floating objects in the layout, don't forget to use the clear attribute at the right time. </dt>
<dd> floating elements seem easy and difficult to manage. If you find that a floating object extends the bounds of the container or does not display as you expect, check to see if your expectations are correct. </dd>
</dl>
</div>
<div class= "explorer" ></div>
<div class= "explorer" ></div>
<div class= "explorer" ></div>
<div class= "explorer" ></div>



Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.