1

私はここにこのコードを持っています...

.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top 20px !important;}

しかし、画像はもう表示されません。要素を調べたところ、css が取り消し線で囲まれています...

私がやろうとしているのは、背景画像にトップを置くことです。

私は何を間違っていますか?

4

1 に答える 1

5

宣言値に引数が多すぎます。特定のニーズに応じて、次のいずれかが機能します。

.madactive{background: url(/graphics/madarrow.jpg) no-repeat center top !important;}

また

.madactive{background: url(/graphics/madarrow.jpg) no-repeat center 20px !important;}
于 2012-12-13T23:01:16.237 に答える