61,122
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
html,
body {height:100%;}
body {
margin:0;
padding:0;
background:#FFF;
font:100%/1.3 arial,helvetica,sans-serif;
}
/*=== Float Containment and Bug Fixes (Do Not Alter These!) ===*/
body:before {/*Opera min-height 100% Fix*/
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/*eliminate need for inner non clearing element*/
}
#wrap:after{ /* #wrap:after for IE8 min-height:100% Fix*/
clear:both;
content:"";
display:block;
height:1%;/*fix IE8 min-height:100% bug*/
font-size:0;
}
/*=== Begin Main Structure ===*/
#wrap {
min-width:800px;
min-height:100%; /*height is determined from parent's height (html & body)*/
margin:-100px auto 0;/*pull footer back into viewport with negative top margin*/
background:#FFF url(images/faux.jpg) repeat-y 0 0; /*images/faux.jpg is just a background color fill with the DIV #left*/ /
}
* html #wrap {height:100%;} /*IE6 treats height as min-height*/
/* demo typography */
h1 {
margin:15px 15px 0;
font-size:1.5em;
}
h2,p {
margin:15px 15px 0;
font-size:1.2em;
}
p {
font-size:1em;
text-align:justify;
}
.bold {font-weight:bold}
/* Begin Columns */
#main {
float:right;
width:100%;/*prevent shrinkwrapping*/
margin-left:-250px;/*make room for left column to rise up*/
padding-top:100px;/*soak up footer height*/
}
#content {
margin-left:250px;/*push content away from left column*/
padding:0 0 15px;
overflow:hidden;/*contain child floats (and IE7 haslayout)*/
border-bottom:1px dashed red;/*just to show float containment*/
}
* html #content {display:inline-block}/*IE6 haslayout*/
#left {
float:left;
width:250px;
padding:100px 0 15px;/*100px to soak up footer height*/
}
#footer {
min-width:800px;/*same as #wrap*/
height:99px;
overflow:hidden;
background:#DDD;
border-top:1px solid #000;
clear:both
}
#footer p {
margin:0;
padding-top:10px;
font-weight:bold;
text-align:center;
}
</style>
</head>
<body>
<div id="wrap">
<div id="main">
<div id="content">
<iframe class="rt" width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://ben10-gamecreator.cartoonnetwork.co.uk/#swf"></iframe>
</div>
</div>
<div id="left">
<h2>Left Heading</h2>
<p>
Lorem ipsum dolor sit amet consect ultrices Integer dis et Nunc. Pellent nec lorem mus
enim eu lorem aliquet pede nunc ligula. Vitae mattis vestibu et Vestibu Maecenas adipiscing
orci non consect pulvinar. Egestas libero ut tincidunt augue non neque elit lacinia sapien
Curabitur.
</p>
</div>
</div><!--End Wrap-->
<div id="footer">
<p>Sticky Footer Here</p>
</div>
</body>
</html>
<script type='text/javascript'> function showDims() { mydiv = document.getElementById('003'); alert(mydiv.scrollWidth+'x'+mydiv.scrollHeight); }</script>
<body style="width:100%;height:100%;margin:0;padding:0;">
<div id="004" style="float:left;position:absolute;width:100%;height:200px;background:green;bottom:0px;margin:0;padding:0;">
aaa
</div>
<div id="001" style="float:left;position:absolute;width:100%;height:100%;bottom:200px;margin:0;padding:200px 0 0 0;">
<div id="002" style="float:left;width:200px;background-color:blue;height:100%;margin:0;padding:0;">
bbb
</div>
<div id="003" style="background-color:red;height:100%;margin-left:200px;margin:0;padding:0;">
ccc
</div>
</div>
</body>
<script type='text/javascript'> function showDims() { mydiv = document.getElementById('003'); alert(mydiv.scrollWidth+'x'+mydiv.scrollHeight); }</script>
<body style="width:100%;height:100%;margin:0;padding:0;"><div id="004" style="float:left;position:absolute;width:100%;height:200px;background:green;bottom:0px;margin:0;padding:0;">aaa</div><div id="001" style="float:left;position:absolute;width:100%;height:100%;bottom:200px;margin:0;padding:0;"><div id="002" style="float:left;width:200px;background-color:blue;height:100%;margin:0;padding:0;">bbb</div><div id="003" style="background-color:red;height:100%;margin-left:200px;margin:0;padding:0;"><iframe class="rt" width="100%" height="100%" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="http://ben10-gamecreator.cartoonnetwork.co.uk/#swf"></iframe></div></div></body>