热门源码
|
热门软件
|
高级搜索
|
网站地图
|
文章
·
软件投稿
免费收录你的网站,现在加入广捷居!
庆祝Admin5·站长网广告联盟开通,抢先注册中.
CSS代码在线格式化、美化工具
首页
站长资讯
源码下载
素材图库
脚本特效
电子书籍
专题
开源者社区
智能模糊搜索
资源名称检索
本站推荐
:
共享世纪推荐的2010·互联网建站品牌CMS
Windows/Linux高性能主机
2G 155元,3G 198元,5G 300元,欢迎联系本站站长选购!
CSS布局:三栏自适应流动布局
脚本类别:
页面布局
添加时间:
2008-11-06
查看次数:
作者:
脚本代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Dynamic Drive: CSS Liquid Layout #3.9- (Fluid-Fluid-Fluid)</title> <style type="text/css"> body{ margin:0; padding:0; line-height: 1.5em; } b{font-size: 110%;} em{color: red;} #topsection{ background: #EAEAEA; height: 90px; /*Height of top section*/ } #topsection h1{ margin: 0; padding-top: 15px; } #columnwrapper{ float: left; width: 100%; } #rightcolumn{ margin: 0 62% 0 20%; /*Margins for right column. Should be "0 contentcolumnWidth 0 rightcolumnWidth*/ background: #FDE95E; } #leftcolumn{ float: left; width: 20%; /*Width of left column in percentage*/ margin-left: -100%; background: #C8FC98; } #contentcolumn{ float: left; width: 62%; /*Width of right column in percentage*/ margin-left: -62%; /*Set margin to -(contentcolumnWidth)*/ } #footer{ clear: left; width: 100%; background: black; color: #FFF; text-align: center; padding: 4px 0; } #footer a{ color: #FFFF80; } .innertube{ margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/ margin-top: 0; } </style> <script type="text/javascript"> /*** Temporary text filler function. Remove when deploying template. ***/ var gibberish=["This is just some filler text", "Welcome to Dynamic Drive CSS Library", "Demo content nothing to read here"] function filltext(words){ for (var i=0; i<words; i++) document.write(gibberish[Math.floor(Math.random()*3)]+" ") } </script> </head> <body> <div id="maincontainer"> <div id="topsection"><div class="innertube"><h1>CSS Liquid Layout #3.9- (Fluid-Fluid-Fluid)</h1></div></div> <div id="columnwrapper"> <div id="rightcolumn"> <div class="innertube"><b>Right Column: <em>Fluid (18%)</em></b> <script type="text/javascript">filltext(15)</script></div> </div> </div> <div id="leftcolumn"> <div class="innertube"><b>Left Column: <em>20%</em></b> <script type="text/javascript">filltext(10)</script></div> </div> <div id="contentcolumn"> <div class="innertube"><b>Content Column: <em>62%</em></b> <script type="text/javascript">filltext(35)</script></div> </div> <div id="footer"><a href="http://www.2ky.cn/">Dynamic Drive CSS Library</a></div> </div> </body> </html>
loading...
当前页面所处路径为
共享世纪
/
脚本特效
/
页面布局
/ ,本特效的Tag为:
共享世纪
默认宽度百分之百,三栏都是流动的布局,能够根据窗口大小自动调整。
会员登陆
close X
用户名
密 码
验证码