- 1、本文档共21页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 100多份品管试卷及答案——资料包(151个doc)2000iso9000内版内部品质(More than 100 quality management papers and answers - data package (151 DOC), 2000iso9000, internal quality).doc
- 100多份品管试卷及答案——资料包(151个doc)2003年网络事业部培训管理办法(More than 100 quality management papers and answers - data package (151 DOC) 2003 network division training management approach).doc
- 100多份品管试卷及答案——资料包(151个doc)实务02(More than 100 quality management papers and answers - data package (151 DOC) practice 02).doc
- 100条施工经验(100 construction experience).doc
- 100条经典影响世界的管理名言(100 Classics world famous management Quotes).doc
- 100多份品管试卷及答案——资料包(151个doc)实务05(More than 100 quality management papers and answers - data package (151 DOC) practice 05).doc
- 100条经验(100 lessons).doc
- 101条经典幽默的计算机编程名言(101 classic humorous computer programming famous sayings).doc
- 07试卷二及解释(07 test paper two and explain).doc
- 106散热器安装施工工艺(106 radiator installation construction process).doc
文档评论(0)