背景色を指定したDIVの左上にGIF画像を表示する。
CSS
div.test{
background:#666 url(../img/~~.gif) no-repeat top left;
}
※画像URLを色指定の後に指定する必要があります。
下記でも大丈夫です。
div.test{
background-color:#666;
background-image:url(../img/~~.gif) ;
background-position:left top;
background-repeat:no-repeat ;
}
