TOP /スタイルシート | 背景 |
---|
<style type=text/css><!-- BODY { background-color: #ffff99; background-image: url(bell01gold.gif); background-repeat: no-repeat; background-position: 90% 90%; background-attachment: fixed; } --></style>
background-color
背景色を指定 HTMLの場合はBODYタグ内にbgcolor=#ffff99
background-image
背景画像の指定 HTMLの場合はBODYタグ内にbackground="bell01gold.gif"
background-repeat
背景画像の表示の仕方の指定
no-repeatで画像を並べない
repeat-xで横方向に並べる
repeat-yで縦方向に並べる
background-position
背景画像の表示位置の指定
横の位置 | 縦の位置 |
leftで左端 centerで中央 rightで右端 または50%のように割合で指定 |
topで上端 centerで中央 bottomで下端 または50%のように割合で指定 |
background-attachment
fixedで背景画像を固定 HTMLの場合はBODYタグ内にbgproperties=fixed
終わり