0
我編碼彼此擴大所有div之一div來充分寬度上懸停
我怎樣才能使一個DIV僅擴大取包裹的div的整個寬度上懸停和其他5周的div旁6周的div得到底部完全展開DIV
HTML:
<div class="row">
<div class="col-md-2" id="discuss_block">
div1.....
</div>
<div class="col-md-2" id="discuss_block">
div2.....
</div>
<div class="col-md-2" id="discuss_block">
div3.....
</div>
<div class="col-md-2" id="discuss_block">
div4.....
</div>
<div class="col-md-2" id="discuss_block">
div5.....
</div>
<div class="col-md-2" id="discuss_block">
div6.....
</div>
</div>
CSS:
#discuss_block{
background: #FFBC2F;
color: #FFF;
z-index: 30;
top: 0px;
}
#discuss_block:hover{
width:100%;
}
ID必須是唯一的...使用類名代替 – DaniP 2014-11-21 13:17:09