开发者

A Tag active Attribute

Can I toggle the 'active' status of an element to invoke css 开发者_开发百科a:active properties?


If you hold your mouse down on the anchor element (or any element), it will invoke the active property. If you want to do this dynamically (in JavaScript), you can create a class, a.active, and add/remove "active" from the className property on the dom element.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜