Curl
 

Menu
 Chapter.1
 Chapter.2
 Chapter.3
 Chapter.4
 Chapter.5
 Chapter.6
 Chapter.7
 Chapter.8
 Chapter.9
 Chapter.10
 
 
■画像の挿入

あらかじめ使用する画像を準備します。
アプレット(start.curl)と同じ階層にimagesというフォルダを作って使用する画像(pic_0142.jpg)を入れておきます。

{center
{image source = {url "images/pic_0142.jpg"},
width = 120pixel, height = 120pixel, } }

位置やサイズの指定もできます。
この場合、位置は中央(center)で サイズは幅(width)120ピクセル、高さ(height)120ピクセルです。



ここまでで、このように表示されます。


■HTMLと比べてみよう☆

<div align="center">
<img src="img/pic_0142.jpg" width="120" height="120">
</div>
{center
{image source = {url "images/pic_0142.jpg"},
width = 120pixel, height = 120pixel, } }


Chapter.2(Part.2)へ戻る
Chapter.2(Part.4)へ進む→