- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
htmlcss网站的兼容性测试及解决方法(Compatibilitytestingandsolutionofhtmlcsswebsite)
html+css网站的兼容性测试及解决方法(Compatibility testing and solution of html+css website)
Compatibility testing of web pages
1, check compatibility between browsers
IE6-IE10, Firefox, et al
2. Verify compliance with W3C standards
You can use some of the following methods for testing.
1, Dreamweaver
2, validator.w3.org officially conducts online verification
Solving browser compatibility issues
For different browsers, write the corresponding CSS style code, so that browsers only explain themselves can identify CSS style code. These style codes are called CSS hack.
The idea of writing CSS hack is to prepare CSS style code for each browser according to the special symbol of the browser identification.
CSS hack mode for mainstream browsers
Firefox does not support special symbols. Important!
After the IE8 \0 statement, before the semicolon. Such as: padding:5px; padding:0px\0;
IE7 + statement or label before. Such as: p{width:55px}; +p{width:60px;}
IE6 _ + statement or tag. Such as: width:80px; _width:60px;
Example:
#mydiv{
Padding:5px; /*firefox*/
Padding:10px\0; /*IE8*/
+padding:15px; /*IE7*/
_padding:20px; /*IE6*/
}
* the order of writing is usually Firefox first, then IE8, or IE7, and IE6 must be last.
If statements supported by various versions of IE
IE6 --[if IE 6.0]IE6 HTML code [endif]--
IE7 --[if IE 7.0]IE7 HTML code [endif]--
IE8 --[if IE 8.0]IE8 HTML code [endif]--
concrete problems
1, three pixel text slow down problem
Scene: IE6, followed by an inline element after the floating (float) element, there is a gap of 3 pixels between the two.
Solution: set the inline element for IE6 separately: _margin-left:-3px;
Note that if you do not declare that the document type is XHTML, Transitional, or Strict, all IE versions will have this bug.
The code reads as follows:
html
head
title solves IE6s 3 pixel slow shift bug/title
style
Body{margin:0px; padding:0px; font-size:13px;}
#container{width:400px; height:150px; background:yellow; zoom:1;}
#div1{display:inline; colo
您可能关注的文档
- 2011-2012学年八年级物理上学期中复习题(无答案) 沪科版(2011-2012 school year, grade eight physics semester review questions (no answer) Shanghai Branch Edition).doc
- 2011-2012学年八年级生物第一学期期中考试测试题 (无答案) 人教新课标版(2011-2012 school year eight grade biology first semester mid-term exam test questions (no answer), people teach new curriculum version).doc
- 2011-2012学年度第二学期江苏省姜堰市娄庄区期中考试七年级语文试卷(The second semester of the 2011-2012 academic year, Jiangsu District, Jiangyan Province, China Zhuang District mid-term exam, grade seven language test paper).doc
- 2011-2012第一学期小学英语教研组工作计划(2011-2012 the first semester primary school English teaching and research group work plan).doc
- 2011-2012第二学年学习部工作总结(2011-2012 、 second academic year work summary of study department).doc
- 2011.3.3解读一号提案城乡社保一体化需完善基金管理(2011.3.3 interpretation of proposition one integration of urban and rural social security fund management needs to be improved).doc
- 2011.12第三套题理论题(2011.12, third sets of questions).doc
- 2011-2012学年度七年级语文下册第二次阶段性测试 苏教版(The 2011-2012 school year, seven grade Chinese 2 second periodic testing of Jiangsu).doc
- 2010二级建造师建筑工程专业考试大纲(2010, two construction division construction engineering examination syllabus).doc
- 2011—2012学年九年级物理上学期期中测试试卷 人教新课标版(2011 - 2012 school year, grade nine, physics, midterm, test papers, people teach new curriculum version).doc
- http状态码(http status code)(HTTP状态码(HTTP状态码)).doc
- i9100_如何识别(How does i9100_ recognize).doc
- ibm薪酬文化(IBM salary culture).doc
- iceworld地图的战术(IceWorld map tactics).doc
- ibm演讲者资料(IBM speaker information).doc
- ibm thinkpad r60安装操作系统全攻略(ibm thinkpad r60安装操作系统全攻略).doc
- icti认证材料,icti申请流程(ICTI certification materials, ICTI application process).doc
- ie 兼容css技巧(ie 兼容css技巧).doc
- ie6 ie7 火狐常见兼容问题(IE6 IE7 Firefox common compatibility issues).doc
- ie5、ie6、ie7、ie8 的css hack兼容(IE5, IE6, IE7, IE8, CSS, hack compatible).doc
文档评论(0)