<!-- hi IE,please go to Quirks Mode-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>X-Links 一个高宽自适用100%,又有部分高宽固定的例子</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="KEYWords" content="layout,auto,100,css" />
<meta name="DEscription" content="本来是以前一个朋友要做收藏夹让我抄的,live的方式不错...只在一屏显示全部内容,部分内容要固定高
宽,所以用了比较垃圾的方式...比如把IE骗进乱七八糟木模式(Quirks Mode)。" />
<meta name="author" content="aoao" />
<meta content="all" name="robots" />
<style>
.inner,
#innerFooter{
border-color:#B7D8ED;
}
#xbar{
/**background-color: #D2EAF6*/
}
#sortList li a{
color:#0958FF
}
#sortList li a:hover{
color:#670FF9;
background-color: #efefef;
}
*{ padding:0; margin:0; }
html {height:100%; max-height:100%; background:#fff; font-size:12px; }
body {height:100%; line-height: 1.6em; max-height:100%;overflow: hidden;}
h3{ font-size: 14px;}
img{
border-style:none;
}
#header {position:absolute;top:0; left:0; display:block; width:100%; height:80px; z-index: 21;}
#footer {position:absolute;bottom:0; left:0; display:block; width:100%; height:60px; z-index: 21;}
#innerHeader{ margin:12px 15px; height: 48px; background-color: #efefef;}
#innerFooter{ margin:12px 15px;padding:8px;border-width:1px;border-style: solid;}
#sortList,
#selector {position:absolute;left:15px;width:180px;}
#tools,#status,#gird,
#pages {position:absolute;left: 200px; right: 15px;}
#xbar{position: absolute; top:70px; bottom: 60px; left: 195px;width:5px; cursor: e-resize;}
#sortList{top:70px;height:46px;z-index: 19;}
#sortList li{}
#selector{top:126px; bottom:68px; z-index: 16;}
#tools{top:70px; z-index: 15;}
#status{top:110px; z-index: 14;}
#gird{top:150px; bottom: 102px; z-index: 9;}
#pages{bottom: 60px;z-index: 12;}
#selector .inner{ height: 100%;}
#status .inner,
#tools .inner,
#pages .inner{line-height:24px; height:24px;}
#gird .inner{height: 100%;overflow: auto;}
.inner{border-width:1px;border-style: solid;padding:3px;background-color:#fff;overflow:auto;}
#sortList .inner{ padding: 0px;}
* html #sortList .inner{height:48px}
#sortList li{
float: left;
width: 100%;
}
#sortList li a{
line-height: 20px;
display: block;
padding:3px 0 0px 25px;
text-decoration: none;
font-weight: bold;
font-size: 14px;
}
.folder a{ background: url(../images/folder.gif) no-repeat 5px 3px; }
.tags a{ background: url(../images/tags.gif) no-repeat 5px 3px; }
#pages{
text-align: right;
}
* html #selector{height:100%; top:0; bottom:0; border-top:126px solid #fff; border-bottom:60px solid #fff;}
* html #gird{height:100%; top:0; bottom:0; border-top:150px solid #fff; border-bottom:96px solid #fff;}
* html #xbar{height:100%; top:0; bottom:0; border-top:70px solid #fff; border-bottom:60px solid #fff;}
* html #tools .inner,
* html #status .inner,
* html #pages .inner{height:34px}
</style>
</head>
<body>
<div id="header">
<div id="innerHeader">一个高宽自适用100%,又有部分高宽固定的例子</div>
</div>
<div id="sortList">
<div class="inner">
<ul>
<li class="folder"><a href="#">显示文件夹</a></li>
<li class="tags"><a href="#">显示标签</a></li>
</ul>
</div>
</div>
<div id="selector">
<div class="inner">
<h3>您的标签</h3>
test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br
/>test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br
/>test<br />test<br />test<br />test<br />test<br />test
</div>
</div>
<div id="xbar"></div>
<div id="tools">
<div class="inner">dfsdf</div>
</div>
<div id="status">
<div class="inner">status</div>
</div>
<div id="gird">
<div class="inner"><p>本来是以前一个朋友要做收藏夹让我抄的,live的方式不错...只在一屏显示全部内容,部分内容要固
定高宽,所以用了比较垃圾的方式...比如把IE骗进乱七八糟木模式(Quirks Mode)。</p>
<p>所有主布局的元素都是用position:absolute流出来body后..根据不同浏览器写不同的定位方式</p>
<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br
/>test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br />test<br
/>test<br />test<br />test<br />test</p>
</div>
</div>
<div id="pages">
<div class="inner">
<a href="#"><img src="http://lab.loaoao.com/demo/layout/100x100/images/f.gif" /></a>
<a href="#"><img src="http://lab.loaoao.com/demo/layout/100x100/images/p.gif" /></a>
<span>1/1 页</span>
<a href="#"><img src="http://lab.loaoao.com/demo/layout/100x100/images/n.gif" /></a>
<a href="#"><img src="http://lab.loaoao.com/demo/layout/100x100/images/e.gif" /></a>
</div>
</div>
<div id="footer">
<div id="innerFooter">copyright 2006 loaoao.com</div>
</div>
</body>
</html>
分享到:
相关推荐
可变高宽的圆角框,html+css!圆角技术
让图片固定高宽显示,让图片显示的更好看,布局显得紧凑点
限定高宽压缩图片工具 ... 2、添加文件夹时会子... 但是输出 直到一个你指定的文件夹下。 不会建立子文件夹。因此 主要子文件夹。 3、若提示内存不够,应该没事。不放心 请检查图片个数。 大批图片提示该问题 没测过。
什么是高宽课程.doc
Jcrop照片剪裁插件高宽比例固定/剪裁效果预览演示
Java爬虫+URL获取Img高宽.zipJava爬虫+URL获取Img高宽.zip
腾讯QQ聊天工具,最新版本主面板高宽限制解除最新工具。
java 爬虫+URL获取Img高宽 java 爬虫+URL获取Img高宽 java 爬虫+URL获取Img高宽
windows字体详解能够获得文字每一部分的高宽值,屏幕分辨率,屏幕物理尺寸毫米数,文字所占像素数TEXTMETRIC
2.创建一个Image对象,将base64图片作为Image对象的src 3.拿到Image对象的高宽,按比例计算出想要的高宽(使用image.onload解决各浏览器不兼容拿不到Image对象高宽的问题) 4.按照计算好之后高宽将图片在canvas上...
多用于在上传图片前初步判断, 图片的高宽是否合法。
iframe 自动获取onload高宽以及iframe 自动加载,具体实现如下,感兴趣的朋友可以参考下
这是一个免费的自定义报表组件下载,%100JAVA,无须注册! 主要功能如下;;;; 0.内建网络打印,网络预览功能! 1.文件操作。包括url 指定的文件。 2.全功能打印支持。包括打印预览。 3.Undo 和 redo。 4....
javascript获取网页各种高宽及位置的方法总结.docx
常用的php图片处理类(水印、等比缩放、固定高宽)分享 <?php //PHP 添加水印 & 比例缩略图 & 固定高度 & 固定宽度 类。 class Image_process{ public $source; //原图 public $source_width; //原图宽度 ...
不管用什么样的方法都无法获取到IMG标签的高宽,最后只有给图片定一个高宽的比例值;趁今天有空我就写了几个demo测试了下,找了下原因;且听我细细说来,如有哪里说的不对的,欢迎拍砖~~~ 首先获取高宽的方法具...
Dreamweaver图像怎么通过img标签定义高宽?Dreamweaver页面中插入图片以后,想要通过img标签定义图片的高度和宽度,该怎么设置呢?下面我们就来看看详细的教程,需要的朋友可以参考下
java使用Xuggler获得视频时长,分辨率,高宽,码率等信息,其中包括xuggle-xuggler-5.4.jar这个jar包,使用该jar包可直接获取视频的各种信息
行业资料-电子功用-制作高宽高比的电极的方法的介绍分析.rar
在JavaScript中,经常会来获取Document文档元素,是 HTML 文档对象模型的英文缩写,Document Object Model for HTML,是基于浏览器编程,HTML DOM 定义了用于 HTML 的一系列标准的对象,以及访问和处理 HTML 文档的...