【发布时间】:2013-12-26 22:00:58
【问题描述】:
大家好,这是我的 div 的 CSS
<style type="text/css">
#container
{
width: 100%;
padding-right: 200px;
}
#autowidth
{
width: 80%;
float: right;
z-index: 1;
position: relative;
}
#fixed
{
width: 20%;
position: fixed;
z-index: 1;
float: left;
margin-right: -200px;
}
</style>
这是我的设计
<div id="container">
<div id="fixed">
<table>
// my controls
</table>
</div>
<div id="autowidth">
<table>
// my controls
</table>
</div>
</div>
但是当我选择一些长文本时,两个 div 重叠
【问题讨论】:
-
同时显示重叠图像
-
你可以看到
GroupBox这是我的第一个div,图片在第二个giv中