| ●背景固定の説明● 通常、<HEAD>と<HEAD>の間にソースを貼り付けます ビルダーの場合は、<TITLE></TITLE>のすぐ下に貼り付けてください 例)青い部分が貼り付けたもの <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <TITLE></TITLE> <style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:★★★; background-repeat: no-repeat; background-attachment: fixed; } --> </style> </HEAD> |
|
| 中央固定 | 右上固定 |
| <style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:center; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |
<style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:100% 0%; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |
| 左上に固定 | 右下固定 |
| <style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:0% 0%; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |
<style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:100% 100%; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |
| 左下固定 | 下固定 |
| <style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:0% 100%; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |
<style type="text/css"> <!-- body { background-color: #ffffff; background-image: url("画像ファイル名"); background-position:bottom; background-repeat: no-repeat; background-attachment: fixed; } --> </style> |