- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
cssdiv与主流浏览器的兼容性问题(Compatibilityissuesbetweencssdivandmainstreambrowsers)
css+div与主流浏览器的兼容性问题(Compatibility issues between css+div and mainstream browsers)
2011-03-12 21:48 css+div compatibility with mainstream browsers 1 for Firefox IE6 IE7s CSS Style
Now, most of them are compatible with important, and the IE6 and Firefox tests can be displayed properly, but IE7 is right. Important can be interpreted correctly, which will cause the page to not display as requested! To find a good compatibility for IE7 is to use *+html, now browse with IE7, there should be no problem, now write a CSS can be like this:
#1 {color: #333}
* HTML #1 {color: #666}
*+html #1 {color: #999}
Then, under Firefox, font color is displayed as #333, under IE6, font color is displayed as #666, and font color is displayed as IE7 under #999.
The centering problem in the 2 CSS layout
The main style definition is as follows:
Body {TEXT-ALIGN: center;}
#center {MARGIN-RIGHT: Auto; MARGIN-LEFT: Auto;}
Explain:
First, define the TEXT-ALIGN: center in the parent element; this means that the content in the parent element is centered; for IE, the setting is already available.
But not centered in mozilla. The solution is to set the child element definition with the MARGIN-RIGHT: Auto; MARGIN-LEFT: auto;
That is, if you want to use this method to make the page to center, not set in a DIV, you can turn down a number of div, as long as the definition of MARGIN-RIGHT: Auto in each div MARGIN-LEFT: auto down; can.
The 3 box model is different
#box{
Width:600px;
//for ie6.0- w\idth:500px;
//for ff+ie6.0
}
#box{
Width:600px! Important!
//for FF
Width:600px;
//for ff+ie6.0
Width: 500px;
//for ie6.0-
}
4 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, inline two elements, characteristics of Block elements is: always start on a new line, height, width, line height, margins can control (element); characteristics of Inline elements is: and other elements
您可能关注的文档
- 10.2浮力的大小2(10.2 the size of the buoyancy force 2).doc
- 10.2思想道德修养和知识文化修养(10.2, ideological and moral cultivation and knowledge and cultural accomplishment).doc
- 10.使用一对多表单向导选择ksb表和kscjb表生成一个名为two的表单(10. using the one to many Form Wizard, select the KSB table and the kscjb table, and generate a form called two).doc
- 10.准备考试的祈祷(10. prayers for exams).doc
- 1.0m加新地图asm代码!(1.0m plus new map ASM code!).doc
- 0到33600端口详解(Port 0 to 33600).doc
- 100个常用批处理实用技巧(100 commonly used batch processing techniques).doc
- 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
最近下载
- 学前儿童学习与发展核心经验健康领域.pdf
- 新人教版七年级下册英语U4词汇分类循环训练单(学生版).docx
- 2023年下半年教师资格证《高中生物》真题及答案.pdf VIP
- 电子版个人简历模板简历表格 个人简历.docx VIP
- 国家秘密载体印制资质现场审查保密知识测试试题库.pdf VIP
- 2025年新疆乌鲁木齐市高考数学二模试卷(理科)+答案解析(附后).pdf VIP
- 我的家乡黑龙江双鸭山.pptx
- 初级注册安全工程师考试(安全生产法律法规)考点重点资料梳理.pdf VIP
- (最全)山东省2016建筑工程消耗量定额.pdf
- 2025年徐州工业职业技术学院单招职业技能测试题库(历年真题).docx VIP
文档评论(0)