twitter-bootstrap - 如何导入语义 ui 的小部分?

标签 twitter-bootstrap semantic-ui

我想使用 semantic-ui 中的特定模块,https://semantic-ui.com/modules/sticky.html

假设我还主要使用其他框架(例如bootstrap)。 我不想仅仅为了我需要的一个模块而包含整个 semantic-ui

有没有办法从语义UI中仅导入(包括..)我需要的特定模块?

最佳答案

只需包含特定组件的 .css 文件和 .js (如果可用)文件。以下是 CDN 的示例:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/components/sticky.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/components/sticky.js" ></script>

您可以在dist/components/folder中找到所有组件,有关语义 UI 安装的更多信息,请参阅 Semantic-UI on GitHub

关于twitter-bootstrap - 如何导入语义 ui 的小部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45297987/

相关文章:

javascript - 语义 ui 表单验证问题

twitter-bootstrap - 当背景为白色时,Bootstrap 汉堡菜单不显示图标栏

html - 如何仅在需要时显示 Bootstrap 3 弹出窗口滚动

html - Bootstrap 菜单悬停

javascript - ref 为 null - 语义 UI React 表行

javascript - 如何在 React 中定义 setFieldValue

javascript - 使用内置样式的 Bootstrap 3 表单验证

twitter-bootstrap - 如何使用 Ember.js 和 Handlebars.js 渲染(Twitter Bootstrap)网格?

laravel - 如何开始使用语义 UI

html - 语义用户界面 : how to place an button at the bottom of a column?