右配置です。
左配置です。
タグはそれぞれ下記、どこが違うかというと赤字の所です。
<p><a href="http://soba.txt-nifty.com/.shared/image.html?/photos/uncategorized/2010/08/02/2010071710071708im.jpg" onclick="window.open(this.href, '_blank', 'width=250,height=160,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img width="160" height="102" border="0" alt="2010071710071708im" title="2010071710071708im" src="http://soba.txt-nifty.com/zatudan/images/2010/08/02/2010071710071708im.jpg" style="float: right; margin: 0px 0px 5px 5px;" /></a>右配置です。<br clear="all" />
<a href="http://soba.txt-nifty.com/.shared/image.html?/photos/uncategorized/2010/08/02/2010071710071708im_2.jpg" onclick="window.open(this.href, '_blank', 'width=250,height=160,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img width="160" height="102" border="0" alt="2010071710071708im_2" title="2010071710071708im_2" src="http://soba.txt-nifty.com/zatudan/images/2010/08/02/2010071710071708im_2.jpg" style="float: left; margin: 0px 5px 5px 0px;" /></a>左配置です。
</p>
<br clear="all">
上記は同じ画像タグでも、クリックすると拡大したりするココログが自動生成するタグです。下記のように、単純に画像タグ中に<img src="ア" alt="イ" align="ウ">とalign属性を使う事も出来ます。
1、
右配置
2、
左配置
以下、タグです。
<p>1、<br />
<img align="right" alt="似顔絵" src="http://soba.txt-nifty.com/zatudan/0Photo/hopemotomu.jpg" />右配置</p>
<br clear="all" />
<p>2、<br />
<img align="left" alt="本田ゆみ" src="http://soba.txt-nifty.com/zatudan/0Photo/hondayumi.jpg" /> 左配置</p>
<br clear="all" />
3、
右左に画像を配置し、その間にテキストを入れる事も出来ます。
「右左に画像を配置し、その間にテキストを入れる」時のタグは下記です。右配置画像、左配置画像、テキスト文の順になっています。素直に、左配置画像タグ、右配置画像タグ、テキストと書いても良いです。いずれにしろ、テキストは真ん中でも最後に書きます。<br clear="all">で最後を締め、次の段落はその下に書きます。
3、<br />
<img align="right" src="http://soba.txt-nifty.com/zatudan/0Photo/hopemotomu.jpg" alt="似顔絵" />
<img align="left" src="http://soba.txt-nifty.com/zatudan/0Photo/hondayumi.jpg" alt="本田ゆみ" /> 右左に画像を配置し、その間にテキストを入れる事も出来ます。</p>
<br clear="all" />
最近のコメント