Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Html ¶¯Ì¬ ´´½¨ÔªËØ

Ô­ÎĵØÖ·£ºhttp://www.cnblogs.com/penny/archive/2008/09/01/1281293.html
¿´Íê´ËÎÄÇëÔÙ¿´¿´<<Ìá¸ßÄãµÄDHTMLÐÔÄÜ>>
¶¯Ì¬´´½¨HTMLÄÚÈݳýÁËÓà document.write()ºÍdocument.innerHTML()ÒÔÍ⣬»¹¿ÉÒÔÓÃDOMÌṩµÄ·½·¨£º
createElement()ºÍcreateTextNode()
1.ÏÈÀ´ËµËµDOMÌṩµÄcreateElement()ºÍcreateTextNode()¡£
----------------------------------------------------------------------------
createElement()·½·¨
Õâ¸ö·½·¨µÄ×÷ÓÃÊÇ´´½¨Ò»¸öеÄÔªËØ£¬ document.createElement()ÊÇÔÚ¶ÔÏóÖд´½¨Ò»¸ö¶ÔÏó£¬ÒªÓëappendChild() »ò insertBefore()·½·¨ÁªºÏʹÓá£
ËüµÄÓï·¨ÊÇ£º
oElement  = document.createElement(sTag)
sTag Required. String that specifies the name of an element.
Àý£º
document.createElement("input")
ÕâÌõÓï¾ä½«´´½¨Ò»¸öinputÔªËØ£¬ËüÏ൱ÓÚ<input >,ÕâʱinputÔªËØÖÐûÓÐÈκÎÊôÐÔÈ磺type = "text"µÈ¡£
ÄÇô¿ÉÒÔͨ¹ýobject.setAttribute(sAttrName, vAttrValue) ÉèÖã¬È磺object.setAttribute("type ", "text") ¡£
Ò²¿ÉÒÔ Í¨¹ýoElement  .type = "text"ÉèÖá£
appendChild()
Õâ¸ö·½·¨µÄ×÷ÓÃÊǽ«Ð´´½¨µÄÔªËزåÈëµ½Îĵµ½ÚµãÊ÷ÖУ¬ÇÒÊÇÔÚ½ÚµãµÄ×Ó½ÚµãÁбíÄ©Ìí¼ÓеÄ×ӽڵ㡣
ËüµÄÓï·¨ÊÇ£º
parent.appendChild(child)
Àý£º
var para=document.createElement("p")
var testdiv=document.getElementById("test")
testdiv.appendChild(para)
ÕâÌõÓï¾äÊǽ«p²åÈëµ½idΪtestµÄdivÖÐ
insertBefore()
Õâ¸ö·½·¨µÄ×÷ÓÃÊÇÔÚ½ÚµãµÄÖ±½Ó×Ó½ÚµãÁбíÖеÄoChildNode½ÚµãÇ°²åÈëoNewNode ½Úµã¡£Èç¹û²»Ö¸¶¨oChildNode£¬
Ôò²åÈë×Ó½ÚµãÁбíµÄĩβ¡£¿´ÏÂÃæµÄ¡¶javascript¶¯Ì¬Ôö¼ÓÐеĴíÎó¡·
ËüµÄÓï·¨ÊÇ£º
oElement = object.insertBefore(oNewNode [, oChildNode])
createTextNode()
Õâ¸ö·½·¨µÄ×÷ÓÃÊÇ´´½¨Ò»¸öÎı¾½Úµã£¬createTextNode() ´´½¨µÄÊDZêÇ©(Ò²¼´ÔªËØ)µÄÄÚÈÝ  £¬createElement() ´´½¨µÄÊDZêÇ©¡£
ËüµÄÓï·¨ÊÇ£º
document.createTextNode(text)
Àý£º
<td> hello </td>
createTextNode¶ÔÓ¦hello
createElement¶ÔÓ¦ <td> </td>
ÏÖÔÚÎÒÃÇͨ¹ý¼¸¸ö¼òµ¥µÄÀý×Ó½«Õ⼸¸ö·½·¨½áºÏÆðÀ´¡£
¾ÙÀý˵Ã÷document.createElement()µÄÓ÷¨¡£
<div id="board"></div>
Àý1£º
        <script type="text/j


Ïà¹ØÎĵµ£º

HTML¶ÔÆëÊôÐÔ


ʹÓà VAlign ÊôÐÔÖ¸¶¨ÓÉ HtmlTableCell ÀàµÄʵÀýËù±íʾµÄµ¥Ôª¸ñÄÚÈݵĴ¹Ö±¶ÔÆ뷽ʽ
“VALIGN"Òâ˼ -- vertical alignment ´¹Ïò¶ÔÆë·½·¨ 
ÆäÖµ¿ÉÒÔÊÇtop -- ¶¥²¿£»»òmiddle -- Öв¿£»»òbottom-- µ×²¿£»»òbaseline -- »ùÏß¡£Ä¬ÈÏÖв¿--middle¡£
¶ÔÆ룬¾ÍÊDZí¸ñ£¨Cell)ÄڵĶ«Î÷£¨ÔªËØ°üÀ¨Í¼ÐΣ©ÅŵÃÕûÆë»®Ò»£¬V ......

HTMLÔÚÏ߱༭Æ÷µÄµ÷Ó÷½·¨ºÍʹÓ÷½·¨Ïê½â

HTMLÔÚÏ߱༭Æ÷²»ÐèÒª¶®µÃʹÓÃDreamweaver8£¬»áÓÃWord¾Í»áʹÓô˱༭Æ÷£¬ÔÚÎÄÕÂϵͳ»òÕßÊÇÐÂÎÅϵͳÐèÒªÎÄ×ֱ༭µÄweb³ÌÐòÖзdz£ÊµÓá£
¡¡¡¡µ«ÊÇÈçºÎ½«html±à¼­Æ÷ǶÈëµ½webÒ³ÖкÍÔõôȡµÃÀïÃæµÄÊý¾ÝÄØ£¿£¡
¡¡¡¡Ê×ÏÈÎÒÃǼٶ¨ÎÒÃÇËùÒªµ÷ÓõÃHTMLÔÚÏ߱༭Æ÷·ÅÔÚÒ»¸öµ¥¶ÀµÃÒ³ÃæÖУ¬ÎļþÃûÊÇgledit.htm¡£
¡¡¡¡HTMLÔÚÏß±à¼­Æ ......

HTML ¸½Â¼£¨1£© HTMLÖеÄתÒå×Ö·û


Ê×ÏÈ£¬ÎÒÃÇÊÔ×ÅÔÚhtmlÎĵµÖÐÊäÈë»Ø³µ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=ut ......

Web¿ª·¢ µÚÒ»²¿·Ö HTML½Ì³Ì»ù´¡£¨Æߣ© Îı¾Ñùʽ±êÇ©

1¡¢±êÌâÎı¾
ÊäÈëÈçÏÂÔ´Â룺
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=g ......

HTML5 ÓëFlash ´ÓÇDz¼Ë¹ÌÖÑáFlash˵Æð

¸öÈ˾õµÃÕâÊDZê×¼Óë˽Óбê×¼µÄPK£¬ ¾ÍÏñ΢ÈíµÄofficeºÍÆäËûofficeÈí¼þ,Èç½ðɽwps£¬openofficeµÄ¾ºÕùÀàËÆ¡£
´ÓÓû§½Ç¶È¿´PKÔ½¶àÔ½ºÃ£¬ºÇºÇ¡£
http://www.javaeye.com/news/15856-apple-flash
http://www.w3school.com.cn/html5/index.asp
http://www.w3.org/TR/html5/
http://html5.org/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ