如何在标记中选择活动类 [英] how to select a active class in a a tag
本文介绍了如何在标记中选择活动类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是jquery的新手,如果我点击标签,如何选择活动课程
例如
主页
关于我们
如果我点击关于我们链接自动活动课程移动
i'm new in jquery how to select a active class if i'm clicking a tag
for example
home
about us
if i click about us link automatic active class move
推荐答案
请参阅我的评论题。目前尚不清楚,但很可能你需要这个:
http://api.jquery.com / addClass / [ ^ ],
http://api.jquery.com/removeClass/ [ ^ ],
或 http://api.jquery.com/toggleClass/ [ ^ ]。
另请参阅: http:/ /api.jquery.com/category/css [ ^ ]。
-SA
Please see my comment to the question. It is not clear, but it's very likely that you need this:
http://api.jquery.com/addClass/[^],
http://api.jquery.com/removeClass/[^],
or http://api.jquery.com/toggleClass/[^].
See also: http://api.jquery.com/category/css[^].
—SA
这篇关于如何在标记中选择活动类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文