Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 使用引导时,如何在导航栏中放置警报?_Twitter Bootstrap - Fatal编程技术网

Twitter bootstrap 使用引导时,如何在导航栏中放置警报?

Twitter bootstrap 使用引导时,如何在导航栏中放置警报?,twitter-bootstrap,Twitter Bootstrap,我正在研究bootstrap,并使用以下示例构建一个站点:http://twitter.github.com/bootstrap/examples/hero.html 我想在导航栏中显示警报。我如何才能做到这一点?为此使用下拉导航 检查此项, 谢谢,这取决于你想要什么。您可以使用显示短消息或通知数量,并带有指向单独页面的链接。或者您可以附加或附加到它。例如 <a href="#" data-html="true" data-placement="bottom" da

我正在研究bootstrap,并使用以下示例构建一个站点:
http://twitter.github.com/bootstrap/examples/hero.html


我想在导航栏中显示警报。我如何才能做到这一点?

为此使用下拉导航

检查此项,


谢谢,这取决于你想要什么。您可以使用显示短消息或通知数量,并带有指向单独页面的链接。或者您可以附加或附加到它。例如

<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>


关于如何在“汉堡包”/“图标栏”部分添加通知,您有什么想法吗?这样,用户无需单击图标栏即可知道存在警报。