gpt4 book ai didi

css - 背景图像似乎在 Sitefinity 4 中被过滤

转载 作者:行者123 更新时间:2023-11-28 10:57:12 25 4
gpt4 key购买 nike

我有一个带有完全限定图像 url 的 CSS 类:

div.main { background: #fffff url('http://www.domain.com/images/pixel.gif') no-repeat  0 0; }

标记是:

<div class="main">content here</div>

在 Firebug 中,计算的 css 表示:

div.main {}

最佳答案

您已将 #fffff 指定为 background-color - 但它只有 5 个十六进制数字,因此它无效。 p>

由于无效的 background-color,Firefox 忽略了整个 background 声明。

将其更改为 #ffffff(或简单地 #fff),它将起作用。

关于css - 背景图像似乎在 Sitefinity 4 中被过滤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6051841/

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