网站大量收购独家精品文档,联系QQ:2885784924

html+css网站的兼容性测试及解决方法(Compatibility testing and solution of html+css website).doc

html+css网站的兼容性测试及解决方法(Compatibility testing and solution of html+css website).doc

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档