HTML ±êÇ©
¶¨ÒåºÍÓ÷¨
<area> ±êÇ©¶¨ÒåͼÏñÓ³ÉäÖеÄÇøÓò£¨×¢£ºÍ¼ÏñÓ³ÉäÖ¸µÃÊÇ´øÓпɵã»÷ÇøÓòµÄͼÏñ£©¡£
area ÔªËØ×ÜÊÇǶÌ×ÔÚ <map> ±êÇ©ÖС£
×¢ÊÍ£º<img> ±êÇ©ÖÐµÄ usemap ÊôÐÔÓë map ÔªËØ name ÊôÐÔÏà¹ØÁª£¬´´½¨Í¼ÏñÓëÓ³ÉäÖ®¼äµÄÁªÏµ¡£
ʵÀý
´øÓпɵã»÷ÇøÓòµÄͼÏñÓ³É䣺
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />
<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
<area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
<area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>
TIY
ä¯ÀÀÆ÷Ö§³Ö
ËùÓÐÖ÷Á÷ä¯ÀÀÆ÷¶¼Ö§³Ö <area> ±êÇ©¡£
HTML Óë XHTML Ö®¼äµÄ²îÒì
ÔÚ HTML ÖУ¬<area> ûÓнáÊø±êÇ©¡£
ÔÚ XHTML ÖУ¬<area> ±ØÐëÕýÈ·µØ¹Ø±Õ¡£
ÌáʾºÍ×¢ÊÍ£º
×¢ÊÍ£º<img> ÖÐµÄ usemap ÊôÐÔ¿ÉÒýÓà <map> ÖÐµÄ id »ò name ÊôÐÔ£¨ÓÉä¯ÀÀÆ÷¾ö¶¨£©£¬ËùÒÔÎÒÃÇÐèҪͬʱÏò <map> Ìí¼Ó id ºÍ name Á½¸öÊôÐÔ¡£
±ØÐèµÄÊôÐÔ
DTD ָʾ´ËÊôÐÔÔÊÐíÔÚÄÄÖÖ DTD ÖÐʹÓá£S=Strict, T=Transitional, F=Frameset.
ÊôÐÔÖµÃèÊöDTD
alt
text
¶¨Òå´ËÇøÓòµÄÌæ»»Îı¾¡£
STF
¿ÉÑ¡µÄÊôÐÔ
ÊôÐÔÖµÃèÊöDTD
coords
×ø±êÖµ
¶¨Òå¿Éµã»÷ÇøÓò£¨¶ÔÊó±êÃô¸ÐµÄÇøÓò£©µÄ×ø±ê¡£
STF
href
URL
¶¨Òå´ËÇøÓòµÄÄ¿±ê URL¡£
STF
nohref
nohref
´ÓͼÏñÓ³ÉäÅųýij¸öÇøÓò¡£
STF
shape
default
rect
circ
poly
¶¨ÒåÇøÓòµÄÐÎ×´¡£
STF
target
_blank
_parent
_self
_top
¹æ¶¨Ôںδ¦´ò¿ª href ÊôÐÔÖ¸¶¨µÄÄ¿±ê URL¡£
TF
±ê×¼ÊôÐÔ
id, class, title, style, dir, lang, xml:lang, tabindex, accesskey
ÈçÐèÍêÕûµÄÃèÊö£¬Çë·ÃÎʱê×¼ÊôÐÔ¡£
ʼþÊôÐÔ
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup, onfocus, onblur
ÈçÐèÍêÕûµÄÃèÊö£¬Çë·ÃÎÊʼþÊôÐÔ¡£
TIY
´´½¨Í¼ÏñÓ³Éä±¾ÀýÏÔʾÈçºÎ´´½¨´øÓпɹ©µã»÷ÇøÓòµÄͼÏñÓ³Éä¡£ÆäÖеÄÿ¸öÇøÓò¶¼ÊÇÒ»¸ö³¬¼¶Á´½Ó¡£
Ïà¹ØÎĵµ£º
ÕâÒ»ÕÂÎÒÃǽéÉܱí¸ñµÄʹÓ÷½·¨¡£
Ç°Ãæѧ¹ýµÄ±êÇ©£¬Ö»Äܽ«HTMLÄÚÈÝ°´ÕÕ“Á÷ʽ”µÄ·½Ê½½øÐв¼¾ÖÅŰ棬ËùνÁ÷ʽ£¬¼´ËùÓеÄHTMLÔªËØ£¨±êÇ©ÔªËغÍÎı¾ÔªËØ£©¶¼ÊÇÒÀÕÕ“´Ó×óµ½ÓÒ£¬´ÓÉϵ½Ï”µÄ·½Ê½À´ÅÅÁеģ¬¼´±ã²¿·Ö±êÇ©µÄalignÊôÐÔ¿ÉÒԸıäÔªËصĶÔÆ뷽ʽ£¬µ«²»ÄܸıäÔªËØÕûÌåÁ÷ʽ²¼¾ÖµÄÌص㡣
±¾ÕÂѧϰµ ......
À´Ô´£ºhttp://club.it.sohu.com/r-it-1350941-0-0-0.html
Ç°ÑÔ
×î½ü¹ØÓÚHTML5 ³³µÃ»ðÈÈ£¬ºÜ¶àÈËÈÏΪHTML5³öÏÖ»áÃëɱFlash£¬ÒÔÖÁÓÚÔÚ¸÷´ówebÇ°¶Ë¿ª·¢ÂÛ̳³³µÃ²»¿É¿ª½»¡£ÂÛ̳ÀïÈýÑÔÁ½Óï˵µÄ²»¹»¾¡ÐË£¬Ö»ºÃÔÚ×Ô¼ºÒ»Ä¶Èý·ÖµØÀﳨ¿ªÁË˵˵¡£Ò²µ±Ò»´ÎÉñ¹÷£¬Õ¹ÍûÒ»ÏÂwebÇ°¶Ë¿ª·¢µÄδÀ´¡£
Ê×ÏÈÕâÀïËù˵µÄHTML5Ò²²»½öÖ¸HTML5 ......
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title>
</head>
<body>
<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF"
&n ......
ÕâÀï˵µÄÆäËü±êÇ©£¬Ö÷ÒªÊÇÒªÅäºÏºóÃæ½²µÄCSSÑùʽ±íÀ´Ê¹Óõģ¬Èç¹ûûÓÐÑùʽ±í£¬ÔòÕâЩ±êÇ©ÏÔʾЧ¹û²»Ã÷ÏÔ¡£
ÕâÀïÎÒÃÇÏÈ°ÑÕâЩ±êÇ©¼Çס¡£
------------
×éºÏ±êÇ©
span±êÇ©ÊÇÒ»¸ö×éºÏ±êÇ©£¬×÷ÓÃÊǽ«Á¬ÐøµÄÔªËØ£¨ÈçÒ»¶ÎÎı¾ÀàÐÍÔªËØ£©Í¨¹ý¸Ã±êÇ©·Ö³ÉÈô¸É¸ö×ÓÔªËØ¡£
ºÍp±êÇ©²»Í¬£¬Ä¬ÈÏÇé¿öÏÂspan±êÇ©ÄÚµÄÎı¾²»»á¸½¼ÓÈκÎÌØ ......
Public Function CHTMLEncode(ByVal fString As String) As String '=========Êý¾Ý¿â»Ø³µ·ûºÍ¿Õ¸ñ·ûת»»=========
fString = Replace(fString, Chr(32), " ")
' fStr ......