最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CSS實例:三列等高布局

互聯(lián)網(wǎng)   發(fā)布時間:2008-10-17 19:20:42   作者:佚名   我要評論
  三列等高CSS布局的一個實例,   修改國外的一個demo,   兼容到了IE5.5 和標(biāo)準(zhǔn)的瀏覽器OperaFirefoxSafari。   不過hack太多,不是很喜歡這樣做。 全部代碼如下: <?xmlversion="1.0"encoding="gb2312"?> <!DOCTYPEhtmlPUBL
  三列等高CSS布局的一個實例,
  修改國外的一個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)資料,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-09-21
  • 前端應(yīng)該掌握的CSS實現(xiàn)多列等高布局技巧

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

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

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

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

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

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

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

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

最新評論

民丰县| 榕江县| 建平县| 资源县| 古蔺县| 洮南市| 常州市| 轮台县| 青岛市| 读书| 黎川县| 木里| 镇江市| 文登市| 罗定市| 怀集县| 天水市| 永吉县| 元氏县| 四平市| 望都县| 正定县| 宕昌县| 阳江市| 登封市| 宣汉县| 陆河县| 福建省| 兴化市| 镇宁| 隆昌县| 黑龙江省| 岳阳市| 台东县| 营口市| 赣州市| 阿拉善右旗| 长沙县| 昌图县| 新化县| 房产|