背景
■背景の指定方法
background: #333 url("背景画像") scroll no-repeat 100px 100px;
※bodyは"(ダブルクォーテーション)。body以外は'(シングルクォーテーション)で指定する。
■背景を横方向に繰り返す
background-image: url('画像アドレス');
background-repeat: repeat-x;
■縦方向
background-repeat: repeat-y;
■繰り返しなし
background-repeat: no-repeat;
■背景画像を固定する
background-attachment: fixed;
例)background-image: url('画像アドレス');
background-repeat: no-repeat;
background-attachment: fixed;
■背景画像の位置を指定する
background-position: 左px(%) 上px(%);
※100%を指定した場合、右下に表示される。