亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

CSS實(shí)例:三列等高布局

互聯(lián)網(wǎng)   發(fā)布時(shí)間:2008-10-17 19:20:42   作者:佚名   我要評(píng)論
  三列等高CSS布局的一個(gè)實(shí)例,   修改國外的一個(gè)demo,   兼容到了IE5.5 和標(biāo)準(zhǔn)的瀏覽器OperaFirefoxSafari。   不過hack太多,不是很喜歡這樣做。 全部代碼如下: <?xmlversion="1.0"encoding="gb2312"?> <!DOCTYPEhtmlPUBL
  三列等高CSS布局的一個(gè)實(shí)例,
  修改國外的一個(gè)demo,
  兼容到了IE5.5 和標(biāo)準(zhǔn)的瀏覽器OperaFirefoxSafari。
  不過hack太多,不是很喜歡這樣做。
全部代碼如下:
<?xmlversion="1.0"encoding="gb2312"?>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml"lang="zh-CN">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<metahttp-equiv="Content-Language"content="zh-CN"/>
<metacontent="all"name="robots"/>
<title>3columnlauput</title>
<styletype="text/css"media="screen">
<!--
/*<![CDATA[*/
/*-----------------------------------------------------------
@from:http://www.alistapart.com/articles/holygrail
@modify:greengnn08-01-02
------------------------------------------------------------*/
*{
margin:0;
padding:0;
}
body{
min-width:550px;
font:normalnormalnormal75%/1.25emVerdana,Arial,Helvetica,sans-serif;
color:#333333;
text-align:left;
}
/*layout*/
#container{
padding-left:200px;
padding-right:150px;
background:#000;
zoom:1;
}
#container:after{
content:'.';
display:block;
height:0;
clear:both;
visibility:hidden;
}
#container{display:inline-block;}
/*\*/
#container{display:block;}
/*\*/
#center,#left,#right{
position:relative;
float:left;
}
* html#center{
}
#center{width:100%;}
#left{
width:200px;
right:200px;
margin-left:-100%;
}
#right{
width:150px;
margin-right:-150px;
}
#footer{clear:both;}
/*Equal-height*/
#container{overflow:hidden;}
#footer{
overflow:hidden;
position:relative;
}
/*IE7hack*/
* html#center{
position:static;
}
* html#left{
position:static;
}
* html#right{
position:static;
}
* html#container{
position:relative;
overflow:hidden;
}
* html#left{
position:relative;
}
/*EndIE7hack*/
/*StartHackforOpera8*/
/*\*/
#container#center,#container#left,#container#right{
padding-bottom:32767px!important;
margin-bottom:-32767px!important;
}
@mediaalland(min-width:0px){
#container#center,#container#left,#container#right{
padding-bottom:0!important;
margin-bottom:0!important;
}
#center:before,#left:before,#right:before{
content:'[DONOTLEAVEITISNOTREAL]';
display:block;
background:inherit;
padding-top:32767px!important;
margin-bottom:-32767px!important;
height:0;
}
}
/**/
/*EndHackforOpera8*/
/*justtosee*/
#header,#footer{
font-size:40px;
line-height:40px;
text-align:center;
font-weight:bold;
color:#cccccc;
background:#666666;
}
#center{background:#eeeeee;}
#left{background:#FF9933;}
#right{background:#0099CC;}
/*]]>*/
-->
</style>
</head>
<body>
<divid="header">header(testinIE5.5 opera9.0Firefox2.0)</div>
<divid="container">
<divid="center">
<h2>Abstract</h2>
<p>Thewebisconstantlyevolving.Newandinnovativewebsitesarebeingcreatedeveryday,pushingtheboundariesofHTMLineverydirection.HTML4hasbeenaroundfornearlyadecadenow,andpublishersseekingnewtechniquestoprovideenhancedfunctionalityarebeingheldbackbytheconstraintsofthelanguageandbrowsers.</p>
<p>Togiveauthorsmoreflexibilityandinteroperability,andenablemoreinteractiveandexcitingwebsitesandapplications,HTML5introducesandenhancesawiderangeoffeaturesincludingformcontrols,APIs,multimedia,structure,andsemantics.</p>
<p>WorkonHTML5,whichcommencedin2004,iscurrentlybeingcarriedoutinajointeffortbetweenthe<ahref="http://www.w3.org/html/"><abbrtitle="W3CHTMLWorkingGroup">W3CHTMLWG</abbr></a>andthe<ahref="http://www.whatwg.org/"><abbrtitle="WebHypertextApplicationTechnologyWorkingGroup">WHATWG</abbr></a>.ManykeyplayersareparticipatingintheW3Ceffortincludingrepresentativesfromthefourmajorbrowservendors:Apple,Mozilla,Opera,andMicrosoft;andarangeofotherorganisationsandindividualswithmanydiverseinterestsandexpertise.</p>
<p>Notethat<ahref="http://www.w3.org/html/wg/html5/">thespecification</a>isstilla<em>workinprogress</em>andquitealongwayfromcompletion.Assuch,itispossiblethatanyfeaturediscussedinthisarticlemaychangeinthefuture.Thisarticleisintendedtoprovideabriefintroductiontosomeofthemajorfeaturesastheyareinthecurrentdraft.</p>
</div>
<divid="left">
<h2>Abstract</h2>
<p>Thewebisconstantlyevolving.Newandinnovativewebsitesarebeingcreatedeveryday,pushingtheboundariesofHTMLineverydirection.HTML4hasbeenaroundfornearlyadecadenow,andpublishersseekingnewtechniquestoprovideenhancedfunctionalityarebeingheldbackbytheconstraintsofthelanguageandbrowsers.</p>
<p>Togiveauthorsmoreflexibilityandinteroperability,andenablemoreinteractiveandexcitingwebsitesandapplications,HTML5introducesandenhancesawiderangeoffeaturesincludingformcontrols,APIs,multimedia,structure,andsemantics.</p>
<p>WorkonHTML5,whichcommencedin2004,iscurrentlybeingcarriedoutinajointeffortbetweenthe<ahref="http://www.w3.org/html/"><abbrtitle="W3CHTMLWorkingGroup">W3CHTMLWG</abbr></a>andthe<ahref="http://www.whatwg.org/"><abbrtitle="WebHypertextApplicationTechnologyWorkingGroup">WHATWG</abbr></a>.ManykeyplayersareparticipatingintheW3Ceffortincludingrepresentativesfromthefourmajorbrowservendors:Apple,Mozilla,Opera,andMicrosoft;andarangeofotherorganisationsandindividualswithmanydiverseinterestsandexpertise.</p>
<p>Notethat<ahref="http://www.w3.org/html/wg/html5/">thespecification</a>isstilla<em>workinprogress</em>andquitealongwayfromcompletion.Assuch,itispossiblethatanyfeaturediscussedinthisarticlemaychangeinthefuture.Thisarticleisintendedtoprovideabriefintroductiontosomeofthemajorfeaturesastheyareinthecurrentdraft.</p>
</div>
<divid="right">
<h2>Abstract</h2>
<p>Thewebisconstantlyevolving.Newandinnovativewebsitesarebeingcreatedeveryday,pushingtheboundariesofHTMLineverydirection.HTML4hasbeenaroundfornearlyadecadenow,andpublishersseekingnewtechniquestoprovideenhancedfunctionalityarebeingheldbackbytheconstraintsofthelanguageandbrowsers.</p>
<p>Togiveauthorsmoreflexibilityandinteroperability,andenablemoreinteractiveandexcitingwebsitesandapplications,HTML5introducesandenhancesawiderangeoffeaturesincludingformcontrols,APIs,multimedia,structure,andsemantics.</p>
<p>WorkonHTML5,whichcommencedin2004,iscurrentlybeingcarriedoutinajointeffortbetweenthe<ahref="http://www.w3.org/html/"><abbrtitle="W3CHTMLWorkingGroup">W3CHTMLWG</abbr></a>andthe<ahref="http://www.whatwg.org/"><abbrtitle="WebHypertextApplicationTechnologyWorkingGroup">WHATWG</abbr></a>.ManykeyplayersareparticipatingintheW3Ceffortincludingrepresentativesfromthefourmajorbrowservendors:Apple,Mozilla,Opera,andMicrosoft;andarangeofotherorganisationsandindividualswithmanydiverseinterestsandexpertise.</p>
<p>Notethat<ahref="http://www.w3.org/html/wg/html5/">thespecification</a>isstilla<em>workinprogress</em>andquitealongwayfromcompletion.Assuch,itispossiblethatanyfeaturediscussedinthisarticlemaychangeinthefuture.Thisarticleisintendedtoprovideabriefintroductiontosomeofthemajorfeaturesastheyareinthecurrentdraft.</p>
</div>
</div>
<divid="footer">footer</div>
<scriptsrc="http://www.google-analytics.com/urchin.js"type="text/javascript"></script>
<scripttype="text/javascript">
/*<![CDATA[*/
_uacct="UA-496414-1";
/*]]>*/
</script>
</body>
</html>
查看運(yùn)行效果:

[ 可先修改部分代碼 再運(yùn)行查看效果 ]

相關(guān)文章

  • css設(shè)置多列等高布局的方法示例

    這篇文章主要介紹了css設(shè)置多列等高布局的方法示例的相關(guān)資料,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2018-09-21
  • 前端應(yīng)該掌握的CSS實(shí)現(xiàn)多列等高布局技巧

    我們在寫頁面的時(shí)候,有的時(shí)候會(huì)遇到多欄布局,這篇文章主要介紹了前端應(yīng)該掌握的CSS實(shí)現(xiàn)多列等高布局技巧,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟
    2018-06-05
  • 利用CSS3的flexbox實(shí)現(xiàn)水平垂直居中與三列等高布局

    這篇文章給大家介紹了三個(gè)小節(jié)的內(nèi)容,其中包括關(guān)于css3中flexbox需要掌握的概念、flexbox實(shí)現(xiàn)水平垂直居中對齊和三列等高自適應(yīng)頁腳區(qū)域黏附底部的布局,有需要的可以參考
    2016-09-12
  • 淺析CSS等高布局的6種方式

    下面小編就為大家?guī)硪黄獪\析CSS等高布局的6種方式。小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2016-05-04
  • 用CSS實(shí)現(xiàn)三列DIV等高布局以傳達(dá)更好的視覺效果

    頁面布局中經(jīng)常遇到等高布局的情況,為了得到更好的視覺效果,就要實(shí)現(xiàn)DIV等高布局的效果。以最普遍的DIV三列布局來說
    2014-09-03
  • 多列等高的CSS實(shí)現(xiàn)代碼

    這種情況下就需要兩列的高度保持一致了,左邊高度增加,右邊也跟著增加,右邊高度增加,左邊同樣也要增加,否則就會(huì)出現(xiàn)“斷層”的效果,接下來將介紹多列等高的實(shí)現(xiàn)方法,
    2012-12-03
  • CSS 三欄等高布局實(shí)現(xiàn)方法

    CSS網(wǎng)頁布局實(shí)例:三欄等高布局.
    2009-08-29
  • CSS實(shí)例:CSS實(shí)現(xiàn)的等高網(wǎng)頁布局

    網(wǎng)頁制作Webjx文章簡介:為了讓網(wǎng)頁更美觀、協(xié)調(diào),有的時(shí)候需要用到左右等到布局,傳統(tǒng)的等高布局是用 javascript 實(shí)現(xiàn)的,現(xiàn)在來看看 silence 發(fā)明的真正的 CSS 實(shí)現(xiàn)的等
    2009-04-02
  • css多種方式實(shí)現(xiàn)等高布局的示例代碼

    本文講的等高布局是在不手動(dòng)設(shè)置元素高度的情況下,使用純css實(shí)現(xiàn)各個(gè)元素高度都相當(dāng)?shù)男Ч?,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看
    2019-01-09

最新評(píng)論