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

Html±ê×¼Îĵµjs¼æÈÝÀý×Ó

 HtmlÊÇ·ñÊDZê×¼ÎĵµÍùÍùÓ°ÏìjsµÄÖ´ÐÐЧ¹û¡£ ±ÈÈ磺ÔÚIE6Ï document.documentElement.clientHeight Õâ¸öº¯ÊýÊÇ»ñÈ¡¿ÉÊÓ´°¿ÚÎĵµ¸ß¶È£¬Èç¹ûhtml²»ÊDZê×¼Îĵµ Ôò·µ»ØÖµÊÇÁã.¶ødocument.body.clientHeight ÄÜ·µ»ØÏàÓ¦µÄÖµ.Ïà·´Èç¹ûÊDZê×¼Îĵµ document.body.clientHeight ·µ»ØÖµÊÇ0;
ÀàËƵĻ¹ÓÐdocument.documentElement.scrollTop  ¸ú document.body.scrollTop µÈ;
ΪÁËÄܹ»µ½´ï¼æÈÝЧ¹û£¬¿ÉÒÔÏñÏÂÃæÕâÖÖд·¨.Èç:
(1)var scrollTop = document.documentElement.scrollTop + document.body.scrollTop;  
(2)document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;
ºÙºÙ Ã÷°×ÁË°É.
±ê×¼ÎĵµµÄÓÐÕâ¸ö:<!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">


Ïà¹ØÎĵµ£º

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

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

Web¿ª·¢ µÚÒ»²¿·Ö HTML½Ì³Ì»ù´¡£¨¶þ£© head²¿·Ö

head±êÇ©ÑÝʾ´úÂ룺
×¢£º<!-- ºÍ -->Ö®¼äµÄÄÚÈÝΪ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>
<!-- ÉèÖÃÒ³ÃæÎÄ×Ö±àÂë -->
<me ......

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 ......

ÆìѶÑз¢¹¤³Ìʦ̸ÍøÕ¾½¨ÉèÓëHTML 5

         ´ÓÎÒÃǵÚÒ»Ì콨ÉèÍøÕ¾ÍøÒ³¿ªÊ¼¾ÍÒ»Ö±ÓÃ×Åhtml,html°éËæ×ÅÎÒÃÇ´ÓFrontPage¿ªÊ¼µ½DreamweaverµÈµÈ¿ª·¢¹¤¾ß½¨Éè¼òµ¥µÄÍøÒ³ÍøÕ¾¡£HTMLÒ²ÊǾ­¹ýÁ˸÷·Öîºî·ÜÕ½²Å´ïµ½½ñÌìµÄ±ê×¼ºÍµØλ¡£Ëæ×ÅÍøÕ¾½¨Éè¼¼ÊõµÄÈÕÒæÔö³¤£¬ÌرðÔÚÍøÕ¾ÓÅ»¯ÉÏÒ²ÐèÒªhtml µÄ¸Ä½ø£¬ËùÒԾ͵®ÉúÁËHTML5£¬²» ......

Web¿ª·¢ µÚÒ»²¿·Ö HTML½Ì³Ì»ù´¡£¨Èý£© body²¿·Ö

ÏÈ¿´ÈçÏ´úÂ룺
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>bodyÔªËØ</title> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ