- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
divcss兼容问题解决方案(ie55.567ff)(Divcsscompatibilityproblemsolution(ie55.567ff))
div+css兼容问题解决方案(ie55.567ff)(Div+css compatibility problem solution (ie55.567ff))
Div+css compatibility problem solution (IE5/5.5/6/7/FF)
Before looking for a few different versions of the IE browser that can run independently, just to try the compatibility of the page. No, I dont know. In IE6 and FF, no problem pages are confused in IE5 and IE5.5
As a group, have heard that IE5 is a nail households WEB standard production, now have to believe.
Since there is a problem, the method for solving the strategy, in the online search related articles, or many, feel the most direct or IE notes, it is convenient for IE can not
Write style with same version. But then you have to write a style for each version, which is not good for file optimizations.
After looking for some related CSS HACK, I felt I could write IE5/IE5.5/IE6/FFs HACK together. After testing, I finally found a good method. Lets take a look at it
How to achieve:
As you all know, using the important declaration improves the application priority of the specified style rules, such as the following example:
E1{
Background-color: red! Important; / * * / upgrade priority
Background-color: blue;
}
But wrote in IE will have a problem, I have seen the on the CSS style sheet and on the priority of the CSS style sheet priority Addendum, you will know that in IE6 and FF in the important statement!
You can raise the priority level, but in IE6, the important declaration is not absolute, and will be replaced by the subsequent definition of the same name property. That is, in the example above, what IE6 applies to
Is the last value of the background color, that is, blue; in FF, the background color is red. With this in mind, we can separate the styles of FF and IE.
OK solves the problems of FF and IE and now resolves IEs own problems.
Read the toot bypass a style of -IE IE6 do not support IE5 also supports gt ; after the words, the use of IE really can recognize? Lets look at an example:
E1{
Background-color: red;
background
您可能关注的文档
- 2003年北大考古通论考研(2003 North general theory of archaeology graduate).doc
- 2004学年第二学期五年级数学升级考试模拟试卷(2004 academic year second semester five grade mathematics promotion test simulation test paper).doc
- 2004—2005学年周秦汉唐文明史考题标准答案及评分标准(Standard answers and scoring criteria for Zhou Qinhan's history of civilization in 2004 - 2005 academic year).doc
- 2.3.4精简列表(2.3.4 streamline list).doc
- 2.导购地图代码(2. shopping guide map code).doc
- 2004年以来工伤认定工作经验材料(Work experience in work-related injury determination since 2004).doc
- 2004年重庆市共青团青工系统工作目标考核表(2004 Chongqing City Communist Youth League work target evaluation form system of young workers).doc
- 2004年高考优秀作文的开头漫谈(The beginning of excellent composition for college entrance examination in 2004).doc
- 2005—2006学年第二学期教学反思(Reflection on the second semester of the 2005 - 2006 school year).doc
- 2005年1月组织行为学(二)(Organizational behavior in January 2005 (two)).doc
文档评论(0)