| |
| Internet Explorer | Netscape Navigator | iCab | Safari | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.0x | 4.0x | 4.5 | 5.0x | 5.5 | 6.0 | 2.0x | 3.0x | 4.0x | 4.x | 6.0 | 7.0 | 2.x | 1.x | |
| Windows | × | ○ | - | ○ | ○ | ○ | × | × | × | × | ○ | ○ | - | - |
| Macintosh | × | ○ | ○ | ○ | - | - | × | × | × | × | ○ | ○ | × | ○ |
| UNIX | - | - | - | - | - | - | × | × | × | × | ○ | ○ | - | - |
| ポイント | .pos { position:absolute; left:200px; top:50px; } |
|---|---|
| 説 明 | 画像の位置を指定するにはposition:absolute;として絶対位置を指定し、left:200px;で左側からの座標、top:50px;として上側からの座標を指定します。 |
| サンプル | <html> <head> <title>画像の表示位置を座標(200,50)にする</title> <style type="text/css"><!-- .pos { position:absolute; left:200px; top:50px; } --></style> </head> <body> <img src="photo.jpg" class="pos"> </body> </html> |
| 補足説明 | なし |
| ■サンプルを実行する >>実行 ■各ブラウザでの動作結果を見る >>View! |