背景画像の表示位置の設定ブロックの背景に設定した画像の表示位置を設定するには、 background-positionプロパティを設定します。
#spanend background-position: 横の表示位置 縦の表示位置 background-position: 横の表示位置 #spandel </pre> #spanend #spanadd background-positionプロパティは、 背景画像のウィンドウの中での表示位置を指定します。 表示位置には次のような設定ができます。
#spanend body { background-image: url(bgimage.gif); background-repeat: no-repeat; background-position: center center; } #spandel </pre> #spanend #spanadd
}} |