最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Give a bootstrap popover an ID - Stack Overflow

programmeradmin4浏览0评论

Is there a way to add a class or ID to a bootstrap popover?

Now, whenever I get a popover, it has the generic class popover, so I cannot style it individually.

<a href="#;" class="hover-dropdown" data-placement="bottom" 
   data-toggle="popover" data-html="true" data-content="hello">Hello</a>

How would I give the popup this creates a class or ID?

Is there a way to add a class or ID to a bootstrap popover?

Now, whenever I get a popover, it has the generic class popover, so I cannot style it individually.

<a href="#;" class="hover-dropdown" data-placement="bottom" 
   data-toggle="popover" data-html="true" data-content="hello">Hello</a>

How would I give the popup this creates a class or ID?

Share Improve this question asked Oct 26, 2014 at 20:17 David542David542 111k206 gold badges569 silver badges1k bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

You can use a template https://stackoverflow./a/14867792/20126 or use the .popover selector to get the popover and add an id to it

发布评论

评论列表(0)

  1. 暂无评论