Jump to content
  • 0

Трехколоночный резиновый сайт


tanaka
 Share

Question

Доброго времени суток уважаемые форумчане!

Верстаю трехколоночный резиновый сайт,возникала проблема в ie6,при уменьшении окна браузера не появляется полоса прокрутки,хотя вроде как все правильно сделал через javascript

Вот весь код:


<!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="ru">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="all.css" />
<!--[if lt IE 7]>
<style type="text/css">
#content {height:100%}
#header .wrap,#content,#footer {width:expression((document.documentElement.clientWidth||document.body.clientWidth)<800?'800px': "auto")}
</style>
<![endif]-->

<style type="text/css">
*{
margin: 0;
padding: 0;
font: 12px arial,sans-serif;
}
p{
padding:30px 5px;
}
html,body{
height: 100%;
}
#header{
height: 100px;
position: absolute;
background-color: #D9D2BD;
top: 0;
left: 0;
width: 100%;
min-width: 800px;
}
#wrapper{
height: 100%;
height: auto !important;
min-height: 100%;
width: 100%;
background: #fafafa;
min-width: 800px;
max-width: 1300px;
}
#content{
padding: 100px 0 0 0;
overflow: hidden;
width: 100%;
height: 100%;

}
#center{
float: left;
width: 100%;

}
#ot{
padding: 0 21%;

}
#left{
width: 20%;
background: #DDE787;
float: left;
margin-left: -100%;

}
#right{
float: left;
width: 20%;
background-color: #E8FFE8;
margin-left: -20%;
}
#empty{
height: 100px;
}
#footer{
height: 100px;
width: 100%;
background: #2FC5D0;
margin-top: -100px;
min-width: 800px;
}
.clear{
clear: both;
}
</style>
</head>
<body>

<div id="wrapper">
<div id="content">
<div id="center">
<div id="ot">
<p>xxxxxxxxxxxxxxxxx zzzzzzzzzzzzzzzzz ddddddddddddddddgh ghd ghdfhdfghd dfghdhdfhdfh fgsdqrtwqgys hg dfgdg
dsfg gfdg dfgdfgdfg fg g fg gh gfhdfhghg gfhg ghhgfhrtrgdfiajfidj fjdkfjksajhffiwue sdfjksdfkasd fjksdf fd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p></p><p></p><p></p><p></p><p></p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p>
</div>
</div>
<div id="left">
<p>xxxxxxxxxxxxxxxxx zzzzzzzzzzzzzzzzz ddddddddddddddddgh ghd ghdfhdfghd dfghdhdfhdfh fgsdqrtwqgys hg dfgdg
dsfg gfdg dfgdfgdfg fg g fg gh gfhdfhghg gfhg ghhgfhrtrgdfiajfidj fjdkfjksajhffiwue sdfjksdfkasd fjksdf fd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p></p><p></p><p></p><p></p><p></p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p>
</div>
<div id="right">
<p>xxxxxxxxxxxxxxxxx zzzzzzzzzzzzzzzzz ddddddddddddddddgh ghd ghdfhdfghd dfghdhdfhdfh fgsdqrtwqgys hg dfgdg
dsfg gfdg dfgdfgdfg fg g fg gh gfhdfhghg gfhg ghhgfhrtrgdfiajfidj fjdkfjksajhffiwue sdfjksdfkasd fjksdf fd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p></p><p></p><p></p><p></p><p></p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>dddddddddddddddd</p>
<p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p> <p>cccccccccccccccccccccc</p>
</div>
</div>
<div id="empty"></div>
</div>
<div class="clear"></div>
<div id="footer">fffffffffffff</div>
<div id="header">111</div>
</body>
</html>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy