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

css兼容性(ie和firefox)技巧大全(CSS compatibility (ie and Firefox) skills Daquan).doc

css兼容性(ie和firefox)技巧大全(CSS compatibility (ie and Firefox) skills Daquan).doc

  1. 1、本文档共21页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
css兼容性(ie和firefox)技巧大全(CSS compatibility (ie and Firefox) skills Daquan)

css兼容性(ie和firefox)技巧大全(CSS compatibility (ie and Firefox) skills Daquan) CSS compatibility of the browser and sometimes make people very headache, perhaps when you learn the skills with principle, feel is not difficult, from the Internet to collect IE7,6 and Fireofx compatibility processing techniques and sorted out. For excessive Web2.0, please write the code in XHTML format as much as possible, and DOCTYPE affects CSS processing. As a standard for W3C, you must add a DOCTYPE declaration. CSS skills The vertical centering problem of 1.div Vertical-align:middle; increase the row spacing to as high as the DIV; line-height:200px; then insert the text and center vertically. The disadvantage is to control the content, not line feed 2., margin doubles The div set to float doubles in the margin setting under ie. This is a IE6 that exists in bug. The solution is to add display:inline to this div; Such as: #div id= imfloat The corresponding CSS is #imfloat{ Float:left; Margin:5px; under /*IE, understood as 10px*/ Display:inline; /*IE is understood as 5px*/} 3. double distance from floating IE #box{float:left; width:100px; margin:0 00 100px; / / this case will produce IE 200px from display:inline; / / ignore the floating} Here describe the block and inline characteristics of two elements: the block element is always begins on a new line, height, width, line height, margins can control (element); characteristics of Inline elements, and other elements in the same line, can not control (inline elements); #box{display:block; / / for an inline element simulation block element display:inline; / / diplay:table effect to achieve the same line arrangement; 4 IE with width and height issues IE does not recognize the definition of min-, but in practice it treats normal width and height as if there were min. Thats a big problem. If you use only the width and height, the two values in the normal browser wont change. If you only use min-width and min-height, the IE below simply doe

您可能关注的文档

文档评论(0)

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

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

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档