我想在悬停时更改 div 的背景图像的宽度。我的代码是:
HTML:
<div class="block2 todrop" target="regbuyer.php"></div>
CSS:
.col1 .block2 { float: right; margin: 104px 0 0 0; width: 208px; height: 104px; background: url(../images/block2-1.jpg) no-repeat center center; background-size: 100% 100%; }
.todrop { cursor: pointer; }