|
|
body {
background-image:url("logo.png");
background-attachment:fixed;
background-position:100% 100%;
background-repeat:no-repeat
}
このように指定することで、一枚のロゴ画像を右下隅に表示させることができます。
背景画像の表示位置 <'background-position'> |
|
「0% 0%」=「top left」=「left top」
「50% 0%」=「top」=「top center」=「center top」
「100% 0%」=「right top」=「top right」
「0% 50%」=「left」=「left center」=「center left」 (ie8- -ff3 -o9 -sf4 -gc2未対応)
「50% 50%」=「center」=「center center」 (ie8- -ff3 -o9 -sf4 -gc2未対応)
「100% 50%」=「right」=「right center」=「center right」 (ie8- -ff3 -o9 -sf4 -gc2未対応)
「0% 100%」=「bottom left」=「left bottom」 (ie8- -ff3 -o9 -sf4 -gc2未対応)
「50% 100%」=「bottom」=「bottom center」=「center bottom」 (ie8- -ff3 -o9 -sf4 -gc2未対応)
「100% 100%」=「bottom right」=「right bottom」 (ie8- -ff3 -o9 -sf4 -gc2未対応)