cssで背景画像の表示位置を指定する場合、
background-positionの指定はbackgroundの指定よりも後に書かないと反映されない。
# hoge {
background: url(hogehoge/hoge.png) no-repeat;
background-position: center center;
}
Go to list of users who liked
More than 5 years have passed since last update.
cssで背景画像の表示位置を指定する場合、
background-positionの指定はbackgroundの指定よりも後に書かないと反映されない。
# hoge {
background: url(hogehoge/hoge.png) no-repeat;
background-position: center center;
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked