【问题标题】:Why my twitter bootstrap button component are not coloured with gradient?为什么我的 twitter 引导按钮组件没有用渐变着色?
【发布时间】:2012-04-18 03:21:27
【问题描述】:

你们知道为什么我的 twitter 引导按钮组件没有用渐变着色吗?它们是彩色的,但是是纯色的,与这里不同:http://twitter.github.com/bootstrap/base-css.html#buttons

非常感谢!

已编辑:

直接从这里使用 css 文件http://twitter.github.com/bootstrap/assets/css/bootstrap.css 效果很好。这很奇怪,因为我只是从http://twitter.github.com/bootstrap/index.html 下载了文件而我没有做任何修改!

【问题讨论】:

  • 您必须发布用于声明按钮的 HTML。
  • 在什么浏览器中?您是否正在使用修改后的引导表?贴一些代码让我们看看。
  • @LeandroFaria 在下面以答案的形式发布您的解决方案,并批准它关闭此线程以帮助未来的用户。
  • @AndresIlich 当然!我会尽快做。它说我需要等待 8 小时,因为我是新用户。

标签: twitter-bootstrap


【解决方案1】:

对于来到这里的谷歌用户:Bootstrap 3:

在第 3 版中,他们认为如果默认样式很简单,人们会发现为引导创建主题会更容易,因此他们取消了渐变。

但是,它们在他们创建的默认主题中具有几乎相同的旧外观。

例如,以下为您获取渐变:

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">

复制自:
http://getbootstrap.com/getting-started/#download-cdn

要了解它的外观,请查看 (http://getbootstrap.com/getting-started/#examples) 官方示例中的最后一个示例,它将您重定向到:
http://getbootstrap.com/examples/theme/

关于他们的决定,引用自他们的官方博文:
http://blog.getbootstrap.com/2013/08/19/bootstrap-3-released/

新设计和可选主题!使用 v3,我们变得平淡无奇。不要打电话 这是一种趋势——这一切都与定制有关,伙计们。由于我们简化了 虽然美学,我们认为有一个可选的主题会有所帮助。 要使用它,请查看 Bootstrap 主题示例。

该帖子值得查看以了解更多详细信息和 v3 中的更改。

【讨论】:

    【解决方案2】:

    直接从这里http://twitter.github.com/bootstrap/assets/css/bootstrap.css 使用 css 文件,效果很好。这很奇怪,因为我只是从http://twitter.github.com/bootstrap/index.html 下载了文件,而我没有做任何修改!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-16
      • 2017-12-17
      相关资源
      最近更新 更多