任何人都有解决方案我想通过鼠标悬停时通过css移动div位置当我将鼠标悬停在div上时向下移动div ....
HTML
<div class="movediv">I Want to Move this div on hover via css</div>
<div class="testing">
<a class="Linktohover">Test</a>
<div class="showDiv">
<ul>
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
</div>
</div>
CSS
.showDiv {
position: absolute;
left: -9999px;
display: block !important;
font-size: 14px !important;
}
.testing:hover .showDiv {
left: 0px;
display: block !important;
}
.testing {
position: absolute;
top: 0px;
}
.movediv {
margin-top: 30px;
}