我有两个主要的div #left和#right其在另一#内容的div,紧邻彼此。 #left包含可裁剪的字段。 #right在右边漂浮。jeditable字段跳出DIV的下一个容器是浮动到右
当点击jeditable领域,跳#内容如下。你可以在这里试试(点击“kala”):http://jsfiddle.net/BuDLC/14/
如果我从#right删除浮动,该字段按预期工作,即。输入字段出现在可编辑div的顶部。
HTML:
<div id="content">
<div id="right">
right
</div>
<div id="left">
<div class="edit">Kala</div>
</div>
</div>
CSS:
body {
background: gray;
height: 100%;
}
.edit {
border-bottom-style: dotted;
border-bottom-color: lightgray;
border-bottom-width: 1px;
background: green;
}
.edit form,
.edit input {
margin: inherit;
padding: inherit;
font: inherit;
color: inherit;
background: inherit;
border: none;
}
#content {
width: 300px;
height: 100px;
}
#right {
float: right;
width: 100px;
background-color: khaki;
}
#left {
width: auto;
min-width: 150px;
background-color: blue;
}
#right, #left {
height: 100%;
}
请MTV,皮条客我的HTML/CSS