PHPbb froum无法将背景徽标颜色更改为渐变

时间:2015-07-14 07:29:25

标签: html css phpbb3

我正在使用phpbb3为我的网站论坛。我在那里添加了custob标题,这很简单,但现在我想设置渐变。 我用this gradient generator 它生成了以下代码:

KeyError

我已在此代码中替换background: #3EC6DC url("pah_to_my_logo.jpg") repeat-x top; -o-background-size: 100% 100%; -moz-background-size: 100% 100%; -webkit-background-size: 100% 100%; background-size: 100% 100%; /* Recent browsers */ background: -webkit-gradient( linear, left top, left bottom, from(#47F7FE), to(#3EC6DC) ); background: -webkit-linear-gradient( top, #47F7FE, #3EC6DC ); background: -moz-linear-gradient( top, #47F7FE, #3EC6DC ); background: -o-linear-gradient( top, #47F7FE, #3EC6DC ); background: linear-gradient( top, #47F7FE, #3EC6DC ); 中的.headerbar css(/styles/prosylver/theme/colours.css当然是我的徽标)。 现在我看到渐变的颜色,但不要看我的日志。我怎么比较呢? 我试过像:

pah_to_my_logo.jpg

但这不起作用。 的更新 这是fiddle

1 个答案:

答案 0 :(得分:1)

您需要做的就是在<div>中添加内容或为其提供尺寸;

.gradient {
    height:500px;
    width:500px;
}

如果你想要一张背景图片,那你就不幸了规则冲突。您必须为该演示文稿创建第二个<div>