All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP将将,XML,映射为,HTML的代码实例_php资料_编程技术
PHP+Access设计留言版实战_php资料_编程技术
一个简单例子教你揭开AJAX神秘面纱_[AJAX教程]
web开发中PHP+MySQL分页显示示例分析_[PHP教程]
用Php模拟asp.net的页面模型_php资料_编程技术
delphi浮动工具栏实例
.NET,2.0,SqlDependency快速上手指南_[Asp.Net教程]
一个功能齐全的DataGrid分页例子_[Asp.Net教程]
SQL2005中的事务与锁定(七)_mssql学习_编程技术
初学者接触HTML了解一些HTML标记(2)_[Html教程]
Reading number is top 10 pictures
性感丰满身材火爆de美女1
关于提肛的健身效果
英雄联盟超神十连杀截图
A man's favorite things9
The money of more than 100 countries and regions3
Kim jong il's mistress, national beauty JinYuJi actor3
明星与豪宅
云南大理的美女
29 the belle stars after bath figure3
壮丽的云彩2
Download software ranking
c#程序设计案例教程
XML+Web+Service开发教程
The Bermuda triangle1
Photoshop 8.0图象编辑软件
终极变速大师Speeder3.26
Sora aoi‘s film--Lust fan wall
Sora aoi, the nurse, uniform ,nursing assistant
WebService在.NET中的实战应用教学视频 → 第2集
C语言教程TXT
Tram sex maniac 2 (H) rar bag5
归海一刀 published in(发表于) 2014/3/30 5:19:44 Edit(编辑)
WEB标准时页面自适应的解决方案_[Html教程]

WEB标准时页面自适应的解决方案_[Html教程]

WEB标准时页面自适应的解决方案_[Html教程]
本篇详细介绍了WEB标准时页面自适应的解决方案,有时利用“相对位置”和“绝对位置”方法来确定DIV的方位,是个很不错的想法,至于如何使用,使用那种方法,还是要看个人习惯以及网页整体要求。来看看下面的方法,从中会掌握自适应的一种好方法。

很多时候明明感觉应该自适应的效果,可是在不同浏览器里却取得不同的结果,这个时候最令人伤神。





XHTML



Untitled Document






?

?

?

?

?

?

Header content goes here


?

Left column Longest


?

Right column Longest


?

No column longest


?

Back to main
? 3 column demo


?

?

?

Navigation


?

?

?

Sidebar content goes here : Sidebar content goes here : Sidebar content
? goes here : Sidebar content goes here : Sidebar content goes here : Sidebar
? content goes here : Sidebar content goes here : Sidebar content goes here
? : Sidebar content goes here : Sidebar content goes here : Sidebar content
? goes here : Sidebar content goes here :


?

?

?

Footer stays at the bottom of the window unless the content is longer then
? it stays at the bottom of the document.


?

Footer stays at the bottom of the window unless the content is longer then
? it stays at the bottom of the document.


?

?

?

?

?

?

?

?

Footer Content


?






CSS
/* commented backslash hack v2 \*/
html, body{height:100%;}
/* end hack */
html,body {
margin: 0;
padding: 0;
}
body {
font: x-small arial, hevetica, sans-serif;
text-align: center;
color: #505367;
background-color: #e0e0e0;
}

#container {
margin-left:auto;
margin-right:auto;
width: 730px;
min-height:100%;
text-align: left;
background: #CEE0E1 url(images/toddbg.gif) repeat-y right top;
border-left: 1px solid #a1a1a1;
border-right: 1px solid #a1a1a1;
? position:relative;
}
/* commented backslash hack v2 \*/
* html #container {height:100%;}
* html #container {width:732px;w\idth:730px;}
* html body{font-size:xx-small;f\ont-size:x-small}
/* end hack */

#mainheader {
position:absolute;
left:0;top:0;
height: 160px;
width:100%;
background-color: #fff;
border-bottom: 1px solid #e6e6e6;
z-index:1;
}
#header {
height: 125px;
width:100%;
background-color: #D1DCE9;
margin: 0px 0px 5px 0px;
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
position:relative;
z-index:2;
overflow:hidden;
}

* html #mainheader {height:161px;he\ight:160px}
* html #header {height:127px;he\ight:127px}
#mainnav {
width:100%;
height: 20px;
background-color: #f5f5f5;
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
position:relative;
z-index:2;
}
* html #mainnav{height:22px;he\ight:20px}
#sidebar {
float: right;
width: 170px;
padding:5px 0 ;
}
#content {
width: 553px;
padding:5px 0 ;
}
#content p, #sidebar p, #mainnav p, #header p,#footer p {margin:0 5px 5px 5px}
#footer{
position:absolute;
bottom:0;
width:100%;
height: 24px;
background-color: #f5f5f5;
border-top: 1px solid #e9e9e9;
}
#footer p {margin:0;padding:0}
* html #footer {height:25px;he\ight:24px;}

.divider1 {
width:100%;
height:5px;
overflow:hidden;
background:#fff;
position:relative;
border-bottom: 1px solid #e6e6e6;
}

#clearfooter {height:27px;width:100%;clear:both}
.blank , .blank2 {
position:absolute;
left:547px;
width:7px;
height:0px;
overflow:hidden;
border-top:1px solid #fff;
}
.blank {top:-1px;}
.blank2 {bottom:-1px;border-top:1px solid #fff;
}

效果参照:


 
 
 
 
 
http://www.pmob.co.uk/temp/2col_main.htm



 
 
 
 
 


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.