- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
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
最近下载
- FPWINPro(第10章_利用指令列表编写程序).pdf VIP
- 《GB 30978-2014饮水机能效限定值及能效等级》(2025版)深度解析.pptx
- 2023年急性ST段抬高型心肌梗死诊断和治疗指南(2023年0326222214).docx
- 杭州西湖区小升初考试题.doc VIP
- ALC墙板安装合同协议书7篇.docx VIP
- 青岛版《科学》五制四年级上册第一单元《动物王国》1《蚂蚁》教学设计.pdf VIP
- NB∕T 11326-2023 煤层穿层钻孔水力冲孔技术规范.pdf
- 教学课件:高压电工培训.ppt VIP
- FPWINPro(第6章_由PLC上载程序).pdf VIP
- 银川平原地下水循环及其可更新能力评价的同位素证据-资源科学.PDF VIP
文档评论(0)