【问题标题】:How do I modify Bootstrap CSS files when I'm using the Bootstrap package?使用 Bootstrap 包时如何修改 Bootstrap CSS 文件?
【发布时间】:2013-12-07 15:39:19
【问题描述】:

Bootstrap 加载到我的项目中,根据运行meteor add bootstrap 命令后出现在我的 .html 文件中的以下内容来判断。

<head>
  <link rel="stylesheet" href="/packages/bootstrap/css/bootstrap.css?e5976308949024b827360231c67b6f50ee1cf8c5">
  <link rel="stylesheet" href="/packages/bootstrap/css/bootstrap-responsive.css?b66c9c5bfb9556bf343298e3fe6e49c39db8c222">
  <link rel="stylesheet" href="/packages/bootstrap/css/bootstrap-override.css?15fa5b55da5c16ed92ffe0c85c0d6aa0867b9c7f">
  <link rel="stylesheet" href="/music.css?2b2e8ef7fc8414f9b064e2d1faf7be37f8e97a97">

但是,packages 下没有 bootstrap 目录,在我的项目目录中找不到任何对 Bootstrap 的引用(除了构建的文件?),如下find 命令的结果所示目录中的所有 css 文件。

music-meteor-master/music.css
music-meteor-master/.meteor/local/build/programs/client/packages/bootstrap/css/bootstrap.css
music-meteor-master/.meteor/local/build/programs/client/packages/bootstrap/css/bootstrap-override.css
music-meteor-master/.meteor/local/build/programs/client/packages/bootstrap/css/bootstrap-responsive.css
music-meteor-master/.meteor/local/build/programs/client/app/music.css

我做错了吗?如何在 Meteor 上使用 Bootstrap?

【问题讨论】:

    标签: twitter-bootstrap meteor


    【解决方案1】:

    要进行 CSS 更改,您需要访问原始 LESS 文件,这些文件会即时解释为该 CSS。包含原始 LESS 的流星包位于:

    https://github.com/ianserlin/meteor-bootstrap-less

    参考:What is LESS?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-27
      • 2015-08-14
      • 1970-01-01
      • 2017-09-22
      • 2021-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多