http://klarbild.probiermau.ch/static/index.html
我有蓝色的盒子向左漂。我有一个橙色盒子的位置:亲戚。
橙色盒子应该把放在里面所以蓝色的盒子应该是漂浮在周围的,橙色的盒子。
这个是可能的吗?暗示?
编辑:我想要能够改变橙色框的位置,只有使用css。蓝色的盒子应该总是漂浮在橙色的盒子周围。而不是隐藏在橙色盒子后面。
非常感谢
发布于 2012-05-11 14:45:18
提示:更改橙色框的位置并将其向右浮动(没有position : relative)
参见以下示例:http://jsfiddle.net/4Bber/1/
代码:
<div class="wrapper">
<div>blue 1</div>
<div>blue 2</div>
<div>blue 3</div>
<div>blue 4</div>
<div>blue 5</div>
<div>blue 6</div>
<div id="orange"></div>
<div>blue 7</div>
<div>blue 8</div>
<div>blue 9</div>
<div>blue 10</div>
<div>blue 11</div>
<div>blue 12</div>
<div>blue 13</div>
<div>blue 14</div>
</div>Css
.wrapper { width: 440px; }
.wrapper div {
width : 100px;
height : 100px;
background : blue;
float : left;
margin : 0 0 10px 10px;
color : #fff;
}
#orange {
background : orange;
width : 210px;
height : 210px;
float : right;
}https://stackoverflow.com/questions/10553287
复制相似问题