【问题标题】:Why linear-gradient won't work fine?为什么线性渐变不能正常工作?
【发布时间】:2013-01-08 21:21:05
【问题描述】:

当它开始加载页面时,我会在它呈现内容之前看到这张图片。
我该如何解决这个问题?

我需要检查什么?

我正在使用 twitter-bootstrap。
有navi、well和fluid。

CSS

body { 
    min-width: 350px;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: rgb(49, 57, 68);
    background-image: linear-gradient(to bottom, rgb(49, 57, 68), rgb(32, 37, 44));
}

【问题讨论】:

    标签: html css twitter-bootstrap


    【解决方案1】:

    添加:

    background-repeat: no-repeat;
    

    渐变就像背景图片,默认情况下重复是打开的。

    PS:你的样式更适合你的导航元素,而不是正文

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-22
      • 2021-12-06
      • 1970-01-01
      • 1970-01-01
      • 2013-02-26
      • 2020-11-06
      • 2016-07-16
      • 2019-01-04
      相关资源
      最近更新 更多