![]() ![]() ![]() Remember that the position of the statement needs to be advanced. With the support of IE7 for !important, the !important method is now only for IE6 HACK. IE6 is written at the end.įollowing two methods can solve almost all HACKs today. Note: No matter what method, the writing order is that firefox is written in the front, and IE7 is written in the middle. : background:orange *background:green _background:blue So you can distinguish IE6, IE7, and firefox like this IE6 supports underscore, IE7 and firefox do not support underscore. IE7 can recognize*, and can also recognize!important įF can’t recognize*, but can recognize!important IE6 can recognize*, but can’t recognize!important, Note: IE can recognize* standard browsers (such as FF) cannot recognize* This is also very important when measuring the level of a DIV+CSS architect.īackground:green !important background:blue īackground: orange *background:green !important *background:blue In order to modify the source, you have to acquire it either by downloading a snapshot of the sources or by checking out the current sources from Mercurial. It is often used when building a website. You can look at the source directly with your web browser using Searchfox (start at for the complete firefox source code of branch HEAD). CSS hack: display different effects for IE6, IE7, and firefox
0 Comments
Leave a Reply. |