gpt4 book ai didi

css - Drupal:CSS 中区域背景图像的无效属性值

转载 作者:太空宇宙 更新时间:2023-11-03 18:29:19 25 4
gpt4 key购买 nike

我正在为一个 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 开发人员工具显示背景图片上有一个“无效的属性值”:css 标签。

如有任何帮助,我们将不胜感激。

最佳答案

这个

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

成为

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

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

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

关于css - Drupal:CSS 中区域背景图像的无效属性值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20181785/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com