gpt4 book ai didi

twitter-bootstrap - Bootstrap CSS 和组件之间的区别

转载 作者:行者123 更新时间:2023-12-04 07:43:59 25 4
gpt4 key购买 nike

关于 getbootstrap.com这些功能在标题下分开 CSS , Components , 和 JavaScript . CSSComponents 有什么区别?究竟是什么决定了哪些 Bootstrap 功能属于这两个类别中的哪一个?

我一直试图弄清楚这一点。今天我决定搜索它,但没有找到答案。

最佳答案

CSS

Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

级联样式表。您可以根据标签、id、类为 HTML 元素定义特定样式。本节介绍如何使用 Bootstrap 提供的内置类来快速设置元素样式。而不是从头开始创建自己的样式表。

  • 文本的辅助颜色类
  • 表格 strip 化
  • 字体选择(标题 1、标题 2 等)
  • 书写时更改字体和文本背景code

组件

Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.

组件不是修改当前元素,而是使用 Bootstrap(和标准)标签和类的组合来创建网页的功能。 <nav> alone 是单个元素,但将其与无序列表和链接混合会创建一个 navbar .

  • 在类 pagination 下使用无序列表创建页码导航
  • 使用面板为其子元素添加边框和可能的背景。
  • Glyphicons 将特定类添加到 <span>呈现图标的元素。

JavaScript

Bring Bootstrap's components to life with over a dozen custom jQuery plugins. Easily include them all, or one by one.

为了完成,Bootstrap 框架预定义了 jQuery 函数以允许许多组件工作。

  • 突出显示事件表单域
  • 下拉菜单中的动画
  • 将鼠标悬停在元素上时显示工具提示

关于twitter-bootstrap - Bootstrap CSS 和组件之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33237764/

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