0

I would like to do something similar to what was posted here...

Make Twitter Bootstrap navbar link active

Except instead of an item on the navbar becoming bolded, I would like it to use another image when active. From this...

before

to this...

after

4

1 回答 1

2

在您发布的示例链接中,他们所做的只是将 CSS .active 类添加到活动链接。如果你做同样的事情并将活动类添加到正确的元素中,你可以在 css 中做一些事情,比如,

.active{
    background: url('path/to/image.jpg') no-repeat;
}
于 2012-11-19T20:00:06.837 回答