娱乐新地带论坛

娱乐新地带论坛 (https://bbs.1819.net/index.php)
-   『软件使用』 (https://bbs.1819.net/forumdisplay.php?f=11)
-   -   html编程 4 (https://bbs.1819.net/showthread.php?t=48532)

gougou123 2007-02-28 09:08 AM

html编程 4
 
链入图象的基本语法
<img src=#> #=图象的 URL
<img alt=#>
#=在浏览器尚未完全读入图象时,在图象位置显示的文字。
<img src="f.gif" alt="MY FACE :-)">


图象和文字的对齐
<img align=#> #=top, middle, bottom
<img src=URL align=top> My face!
My Face!
<img src=URL align=middle> My face!
My Face!
<img src=URL align=bottom> My face!
My Face!
只有一行文字才可以放在图象的两边。(不知道翻译的对不对?)
Only one text line can be flown into the both side of Image.

图象在页面中的对齐/布局(Floating Image)
<img align=left>
<img src=URL align=left>My Face!<br>
It is always<br>
smiling.<br>
Hahaha....<br>
My Face!
It is always
smiling.
Hahaha....


<img align=right>
My Face!
It is always
smiling.
Hahaha....


<br clear=all>
<img src=URL align=left>My Face!<br>
It is always
<br clear=all>
smiling.<br>
Hahaha....<br>
My Face!
It is always
smiling.
Hahaha....


<img vspace=# hspace=#> #=value
<img src=URL align=left vspace=10 hspace=20>My Face!<br>
It is always<br>
smiling.<br>
Hahaha....<br>
My Face!
It is always
smiling.
Hahaha....


边框
<img border=#> #=value
<a href="URL">
<img src=URL border=15>
</a>


最强的师资!最好的设备!我信赖:北大青鸟(五羊新城学校)网络工程师培训中心咨询电话:87318662 传真:87601353 地址:广州市东山区达道路12号金达大厦三楼


所有时间均为北京时间。现在的时间是 07:24 AM

©2003-2024 1819.net All rights reserved. © 2024