Friday, September 3, 2010

2010 is fully compatible with the CSS HACK wording IE6/IE7/IE8/FF

Browser market chaos caused great trouble to designers, design pages compatible browsers have to complete this compatible with the browser, would have ie6 compatible with ff is easily among the solutions. Would be trouble spots with a ie7, ie8 even the appearance of headache, and not the original hack ie7 method can be used, how should we do?
The first method:
Fortunately, Microsoft provides such a code:

Put this code inside the page inside the ie8 ie7 resolution up Jiugen exactly the same, so basically you can ignore the ie8, rest of the code only needs to write on it
background: # ffc; / * effective against firefox * / 
* Background: # ccc; / * on ie7 valid * / 
_background: # 000; / * valid only for ie6 * /
Explain it:
firefox can parse the first paragraph, the latter two because preceded by a special symbol "*" and "_", firefox can not recognize, it only recognized background: # ffc, see is yellow;
ie7 can identify the first two short, to the last subject, so the final analysis is the background: # ccc, see is gray;
ie6 three sections can be identified, and "_" the only ie6 will recognize, the final resolution is _background: # 000, see is black
Amen! Already is the simplest and best understood of the wording, if you are coming in google, I am responsible to tell you that this method is ok, I've tested.
ie8 compatibility of that period of 7 I tested the code, and in my present windos 7 brought the ie8 beta no problem, since the official version of ie8 also control whether to use them do not know.
ps: If you find written by me, or have questions, please check your html head, take a look at the contents of is not the case prior to the standard formulation
 

This is now a fairly standard formulation, if the page you are using dreamweaver to do so, the default is of such norms, remember, this non-standard writing style, and compatibility can not guarantee
The second method:
Demanding friend is reluctant to increase the head of the page such a code, because this result is that each page had to increase . To these so-compatible browsers really need to find another solution. Site released a day earlier " perfect compatible with ie6, ie7, ie8 and firefox's css transparent filters ", may then test the negligence, IE8 does not solve the compatibility, a lot of friends responded that not take. Out some time today, A lot of information, finally solved the problem.

The following are compatible IE6/IE7/IE8/FF wording, note the following order can not be reversed
margin-bottom: 40px; / * ff attributes * / 
margin-bottom: 140px \ 9; / * IE6/7/8 attributes * / 
color: red \ 0; / * IE8 support * / 
* Margin-bottom: 450px; / * IE6 / 7 of the properties * /

No comments:

Post a Comment