Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果没有看到代码,showhide就无法确切地看到你做错了什么。既然你提到了 jQuery,这里是如何用它来描述的:
showhide
$('.gkvSprite').click(function() { $(this).addClass('selected'); });
还需要注意的是,以数字开头的 ID 是无效的。