- 1、本文档共23页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
divcss布局兼容(Divcsslayoutcompatible)
div+css布局兼容(Div+css layout compatible)
Div+css layout, web compatible, IE, firefox:
Such as:
div class= box
div class=, box_top, /div
div class=, box_mid, /div
div class=, box_bot, /div
div
In general box in box_mid with content and to make it height:auto! Important; min-height: is a fixed value; but for the background image of box box_mid in the background is flat down as the content and how much growth.
If we want to leave the contents of the box_mid in a certain distance from the box_top header, we need to set the margin:20px auto, but this will leave the middle background graph unconnected with the background map. Can be changed to:
Margin:0 Auto; padding-top:20px; padding_bottom:20px;
Thus, the whole box background diagram will be linked together.
Following references:
All browsers are generic (the main use of IE6 IE7 FF)
Height: 100px;
Dedicated IE6
_height: 100px;
Dedicated IE6
*height: 100px;
Dedicated IE7
*+height: 100px;
IE7, FF share
Height: 100px! Important;
One, CSS compatible
The following two approaches can almost solve all of todays compatibility
1, important! (not recommended, safest with one of the following)
With the support of IE7 for important, the important method is now only compatible with IE6. (note the wording. Remember that the declaration location needs to be advanced.)
Code:
style
#wrapper {
Width: 100px important; / * * / IE7+FF!
Width: 80px IE6; / * * /
}
/style
2, IE6/IE77 for FireFox from for Firefox IE6 IE7s CSS Style
*+html and *html are IE - specific tags, and Firefox does not support them for a while, and *+html is a IE7 - specific tag
Code:
style
#wrapper {width: 120px;} / * * / FireFox
*html #wrapper {width: 80px;} / * IE6 * fixed
*+html #wrapper {width: 60px;} / * IE7 * fixed, pay attention to the order
/style
Be careful:
*+html compatibility with IE7 must be guaranteed at the top of the HTML with the following declarations:
Code:
DOCTYPE, HTML, PUBLIC, -//W3C//DTD, HTML, 4.01, Transitional//EN, /TR/html4/loose.dtd
Two, un
您可能关注的文档
- 18《称赞》(18, praise.).doc
- 19《买猫头鹰》(19, buy owls.).doc
- 1、我们几个朋友一起去大草原上玩(1, several of our friends go to play on the prairie).doc
- 1、皮肤粗黑靠化妆品增白皮肤,(1, skin coarse black rely on cosmetics whitening skin,).doc
- 175839_造价师口诀(175839_ cost division formula).doc
- 1《复习way》弄懂做过的每一道题,听起来很简单(1, review way, understand every problem that has been done, sounds very simple).doc
- 1冰雪卫士(1 ice guard).doc
- 2 金融法律制度(2 financial legal system).doc
- 2-3岁宝宝最爱玩的小游戏(2-3 year old baby favorite game).doc
- 2.3.3 - 通过java语言进行bapi调用(2.3.3 - Bapi calls through the Java language).doc
文档评论(0)