我正在创建一个样本网站,其中有三个部门横向。 我希望最左边的分区宽度为25% ,中间的分区宽度为50% ,右边的分区宽度为25% ,这样分区就可以水平地填充所有100% 的空间。
<html>
<title>
Website Title
</title>
<div id="the whole thing" style="height:100%; width:100%" >
<div id="leftThing" style="position: relative; width:25%; background-color:blue;">
Left Side Menu
</div>
<div id="content" style="position: relative; width:50%; background-color:green;">
Random Content
</div>
<div id="rightThing" style="position: relative; width:25%; background-color:yellow;">
Right Side Menu
</div>
</div>
</html>
当我执行这段代码时,div 会出现在彼此之上,我希望它们出现在彼此之间!
我怎么能这么做?