【问题标题】:Drupal: Invalid Propery Value on region background image in CSSDrupal:CSS中区域背景图像的属性值无效
【发布时间】:2013-11-24 22:14:19
【问题描述】:

我正在为一个 drupal 站点创建一个主题,到目前为止它是非常基本的。主题的文件夹结构是这样的:

theme-folder
-->css
   -->style.css
-->images
   -->first_page_slideshow.png
--drupal files--

相关区域的 css:

.content-header {
    background-image: url ('../images/first_page_slideshow.png');
    background-repeat: no-repeat;
    background-position: left top;      
    width: 1024px;
    height: 380px;      
}

但我无法将图像加载为背景。 Google 开发者工具显示它是 background-image: css 标记上的“无效属性值”。

任何帮助将不胜感激。

【问题讨论】:

    标签: css drupal background


    【解决方案1】:

    这个

    background-image: url ('../images/first_page_slideshow.png');
    

    变成

    background-image: url('../images/first_page_slideshow.png');
    

    url 和括号之间只有一个空格。

    一个简单的证明:http://jsfiddle.net/suLNk/

    【讨论】:

    • 总是简单的东西。谢谢凯文。
    猜你喜欢
    • 2012-12-31
    • 2016-10-24
    • 2019-07-13
    • 1970-01-01
    • 2018-05-07
    • 1970-01-01
    • 1970-01-01
    • 2014-05-25
    • 2015-09-19
    相关资源
    最近更新 更多