我正在学习引导程序,并使用此示例构建网站:http://twitter.github.com/bootstrap/examples/hero.html
如何在使用Bootstrap时将警报置于导航栏中?
我想在导航栏中显示警报。我怎样才能做到这一点?
我正在学习引导程序,并使用此示例构建网站:http://twitter.github.com/bootstrap/examples/hero.html
如何在使用Bootstrap时将警报置于导航栏中?
我想在导航栏中显示警报。我怎样才能做到这一点?
这取决于你想要什么。您可以使用labels and badges来显示简短消息或通知数量以及指向单独页面的链接。或者您可以将tooltip或popover附加到它。例如。
<a href="#"
data-html="true"
data-placement="bottom"
data-toggle="popover"
data-content="Notification 1<br/>Notification 2"
data-original-title="Notifications">
<span class="badge badge-success">2</span> Notifications
</a>
JS小提琴不起作用。 – Ofiris 2014-01-09 09:46:01
固定。链接已更新。 – sody 2014-01-09 10:14:16