gpt4 book ai didi

twitter-bootstrap - 在 twitter bootstrap 中,导航栏和导航药丸有什么区别?

转载 作者:行者123 更新时间:2023-12-03 11:53:05 24 4
gpt4 key购买 nike

我正在浏览 twitter bootstrap 的组件,我发现导航组件有两个单独的部分,一个是导航栏,另一个是导航药丸/标签等。

Navbar 似乎与 nav-pills 非常相似,任何人都可以强调它们之间的区别以及何时使用它们中的任何一个,因为文档对此并不十分清楚。

导航栏:

"To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container, which sets the width of your site and content"



Navbar

导航丸:

Nav-pills

取自 the bootstrap documentation

最佳答案

导航栏旨在对您网站的所有页面通用(“对项目名称的支持”是指向主页的链接),而导航药丸可能是特定于页面或部分的导航栏。

基本上,导航栏是独一无二的,它提供指向您网站主要部分的链接。导航丸可能会提供指向您的页面 anchor 的内部链接......

但这仍然是您的决定,具体取决于您对菜单渲染的偏好。

关于twitter-bootstrap - 在 twitter bootstrap 中,导航栏和导航药丸有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14022135/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com