我能够在
我想实现的是在悬停时,下划线
:hover
状态下将background-image
应用于锚点,并希望同时进行动画处理。我该如何实现?.nav-content ul li a {
display: inline-block;
padding: 5px 0;
text-decoration: none;
color: #fff;
}
.nav-content ul li a:hover {
text-decoration: none;
background: url('dotted.gif') bottom repeat-x;
}
我想实现的是在悬停时,下划线
dotted.gif
图片在X轴上持续动画化。到目前为止,它只会在悬停时出现。