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
Ïà¹ØÎĵµ£º
ʹÓà VAlign ÊôÐÔÖ¸¶¨ÓÉ HtmlTableCell ÀàµÄʵÀýËù±íʾµÄµ¥Ôª¸ñÄÚÈݵĴ¹Ö±¶ÔÆ뷽ʽ
“VALIGN"Òâ˼ -- vertical alignment ´¹Ïò¶ÔÆë·½·¨
ÆäÖµ¿ÉÒÔÊÇtop -- ¶¥²¿£»»òmiddle -- Öв¿£»»òbottom-- µ×²¿£»»òbaseline -- »ùÏß¡£Ä¬ÈÏÖв¿--middle¡£
¶ÔÆ룬¾ÍÊDZí¸ñ£¨Cell)ÄڵĶ«Î÷£¨ÔªËØ°üÀ¨Í¼ÐΣ©ÅŵÃÕûÆë»®Ò»£¬V ......
HTMLÔÚÏß±à¼Æ÷²»ÐèÒª¶®µÃʹÓÃDreamweaver8£¬»áÓÃWord¾Í»áʹÓô˱à¼Æ÷£¬ÔÚÎÄÕÂϵͳ»òÕßÊÇÐÂÎÅϵͳÐèÒªÎÄ×ֱ༵Äweb³ÌÐòÖзdz£ÊµÓá£
¡¡¡¡µ«ÊÇÈçºÎ½«html±à¼Æ÷ǶÈëµ½webÒ³ÖкÍÔõôȡµÃÀïÃæµÄÊý¾ÝÄØ£¿£¡
¡¡¡¡Ê×ÏÈÎÒÃǼٶ¨ÎÒÃÇËùÒªµ÷ÓõÃHTMLÔÚÏß±à¼Æ÷·ÅÔÚÒ»¸öµ¥¶ÀµÃÒ³ÃæÖУ¬ÎļþÃûÊÇgledit.htm¡£
¡¡¡¡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 ......
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 ......
¸öÈ˾õµÃÕâÊ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/ ......