我希望我的 Div位于另一个 Divid="b"
上,但是我将 Div放在 Div 下,我需要在 Css 中更改什么?id="a"
id="b"
id="a"
html:
<div class="picad30">
<div class="pic_sin30" id="a">
<img width="110" border="0" class="pic_sin30" src="SMALLAD.png"/>
</div>
<div class="picgar30 p" id="b"></div>
<div >
<div >upload</div>
<div ></div>
</div>
</div>
CSS:
.picad30{
width:130px;
float:right;
display:table;
margin: 20px 0 0 0px;
position: relative;
}
.pic_sin30{
border: 1px solid #ccc;
height: 87px;
overflow: hidden;
width: 130px;
position: relative;
z-index:1;
}
.picgar30{
background-position:-5px -244px;
cursor:pointer;
height: 20px;
width: 20px;
float:left;
z-index:20;
position:absolute;
}
.p {
background-image: url("PIC/icon.png");
background-repeat: no-repeat;
}