在CSS中,您可以:
:hover {background:red;}
在JS中,您可以:
function fix(){ var el = this; var par = el.parentNode; var next = el.nextSibling; par.removeChild(el); setTimeout(function() {par.insertBefore(el, next);}, 0)}
然后在您的HTML中:
<a href="#" ontouchend="this.onclick=fix">test</a>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)