HTML代碼:
<div id="wrapper">
<div id="left">
<p>The left-hand content</p>
</div>
<div id="right">
<p>The right-hand content</p>
</div>
</div>
這裏是CSS:
#wrapper
{position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
display: block;
width: 100%;
background-color: #ffa;
}
#right {position: absolute;
border-radius: 5px 10px/10px;
top:5%;
right: 10%;
bottom: 0;
width: 17%;
display: block;
background-color: #ccc;
overflow: auto;
}
#left {width: 60%; height:100%;
border-radius: 5px 10px/10px;
margin-top:2.5%;
margin-left: 10%;
margin-right: 16%;
display: block;
background-color: #0ff;
overflow: auto;
}
p {display: block;
margin: 0.5em;
padding: 0.2em 0.5em;
}
上面的代碼看起來像這樣的圖像 http://i57.tinypic.com/29wv614.png
能否請您分享您的博客網址是什麼? – mohamedrias
readtoparticles.blogspot.com –