0

Having a small problem where the background image is not showing in any of the IE versions (except IE 9 I believe), not sure what is going wrong, any helps/thoughts/things I could try out?

Kind regards

http://www.trucknetuk.com/phpBB/viewforum.php?f=46 It is the Michelin banner(not the small sponsor) just above the new topic button

background: url("./styles/Owner_Fleet_Operator_MS/theme/images/michelinback.gif") repeat-x scroll center 0 transparent;

4

3 に答える 3

3

これを変える:

background: url('./styles/Owner_Fleet_Operator_MS/theme/images/michelinback.gif')repeat-x scroll center 0 transparent;

これに:

background: url('./styles/Owner_Fleet_Operator_MS/theme/images/michelinback.gif') repeat-x scroll center 0 transparent;

違いは、閉じ括弧の後と「repeat-x」の前のスペースです。IEは、構文に関して他のブラウザーよりもはるかに扱いにくいです。

于 2013-02-07T14:53:37.383 に答える
1

背景の速記が間違っていtransparentます。最初に来る必要があります

#page-body {
    background: transparent url("./styles/Owner_Fleet_Operator_MS/theme/images/michelinback.gif") repeat-x center 0;
    clear: both;
    padding: 4px 5px;
}

適切な略記は次のとおりです。body {background:#ffffff url('img_tree.png') no-repeat right top;}

scroll宣言で何をしようとしているのかわからない

于 2013-02-07T14:56:55.803 に答える