½ØÈ¡ÎÄÕÂÒ»²¿·ÖÏÔʾ(ÎÞËðhtml)
×î½üÔÚ×öһЩÄÚÈÝËÑË÷µÄ¹¤×÷£¬ËÑË÷³öÀ´µÄÄÚÈÝΪhtml¸ñʽ£¬ÁÐ±í²¿·ÖÐèÒªÏÔʾÿÏîÄÚÈݵÄÒ»²¿·Ö¡£ÒòΪÊÇhtml¸ñʽµÄÄÚÈÝ£¬Ö±½Ó½ØÈ¡ÄÚÈݵÄÇ°¶àÉÙ×Ö·ûÏÔÈ»²»ºÏÊÊÁË¡£¶øÈç¹ûÖ±½ÓÈ¥µôËùÓÐhtml¸ñʽȻºóÔÙ½ØÈ¡ÓÖÎÞ·¨´ïµ½ÏëÒªµÄЧ¹û£¬ÔÙÍøÉÏËÑÁËһ֮ͨºó£¬Ð´ÏÂÈçÏ´úÂëÓ¦¸Ã¿ÉÒÔÂú×ã»ù±¾µÄÒªÇóÁË¡£(jsдµÄ£¬ÒòΪÈÝÒ×µ÷ÊÔ)
´úÂë
var br = {};
br.spTags = ["img","br","hr"];/*²»ÐèÒª³É¶Ô³öÏֵıê¼Ç*/
br.contain = function(arr,it){
for(var i=0,len=arr.length;i<len;i++){
if(arr[i]==it){
return true;
}
}
return false;
}
br.subArtc = function(article,worldNum){
var result = [];
/*Ê×ÏȽØÈ¡ÐèÒªµÄ×Ö´®*/
var wcount = 0;
var startTags = [],endTags = [];
var isInTag = false;
for(var i=0,len=article.length;i<len;i++){
var w = article[i];
result.push(w);
if(w=="<"){
isInTag = true;
}
if(!isInTag){
wcount++;
if(wcount==worldNum){
break;
&nb
Ïà¹ØÎĵµ£º
HTMLÔÚÏß±à¼Æ÷²»ÐèÒª¶®µÃʹÓÃDreamweaver8£¬»áÓÃWord¾Í»áʹÓô˱à¼Æ÷£¬ÔÚÎÄÕÂϵͳ»òÕßÊÇÐÂÎÅϵͳÐèÒªÎÄ×ֱ༵Äweb³ÌÐòÖзdz£ÊµÓá£
¡¡¡¡µ«ÊÇÈçºÎ½«html±à¼Æ÷ǶÈëµ½webÒ³ÖкÍÔõôȡµÃÀïÃæµÄÊý¾ÝÄØ£¿£¡
¡¡¡¡Ê×ÏÈÎÒÃǼٶ¨ÎÒÃÇËùÒªµ÷ÓõÃHTMLÔÚÏß±à¼Æ÷·ÅÔÚÒ»¸öµ¥¶ÀµÃÒ³ÃæÖУ¬ÎļþÃûÊÇgledit.htm¡£
¡¡¡¡HTMLÔÚÏß±à¼Æ ......
´ÓÎÒÃǵÚÒ»Ì콨ÉèÍøÕ¾ÍøÒ³¿ªÊ¼¾ÍÒ»Ö±ÓÃ×Åhtml,html°éËæ×ÅÎÒÃÇ´ÓFrontPage¿ªÊ¼µ½DreamweaverµÈµÈ¿ª·¢¹¤¾ß½¨Éè¼òµ¥µÄÍøÒ³ÍøÕ¾¡£HTMLÒ²ÊǾ¹ýÁ˸÷·Öîºî·ÜÕ½²Å´ïµ½½ñÌìµÄ±ê×¼ºÍµØλ¡£Ëæ×ÅÍøÕ¾½¨Éè¼¼ÊõµÄÈÕÒæÔö³¤£¬ÌرðÔÚÍøÕ¾ÓÅ»¯ÉÏÒ²ÐèÒªhtml µÄ¸Ä½ø£¬ËùÒԾ͵®ÉúÁËHTML5£¬²» ......
ÔÚHTMLÎĵµÖУ¬´ó²¿·ÖÔªËض¼¿ÉÒÔÖ¸¶¨É«²Ê£¬ÒÔ±í´ïÆ䲻ͬµÄº¬Ò壬ʹÕû¸öÎĵµ¿´ÆðÀ´¸ü¼ÓÃÀ¹ÛÇÒ¾ßÓвã´Î¸Ð¡£ÀýÈçbody½ÚµãµÄtext,link,alink,vlinkÊôÐÔ£¬»òÕßfont½ÚµãµÄcolorÊôÐÔ£¬¶¼¿ÉÒÔÓÃÀ´¸Ä±äÆäÎı¾×Ó½ÚµãµÄÉ«²Ê¡£
HTMLÎĵµÊ¹ÓÃÁ½ÖÖ·½Ê½±í´ïÉ«²ÊÐÅÏ¢£º
ÃüÃûÉ«²Ê¿Õ¼ä£ºÔÚHTMLÎĵµÖУ¬¶¨ÒåÁË16ÖÖ×î³£ÓõÄÑÕÉ«£¬²¢¸³ÓèÆäÉ« ......
a±êÇ©±íʾһ¸ö“³¬Á´½Ó”£¬¼´¿ÉÒÔͨ¹ýµã»÷a±êÇ©£¬ÈÃä¯ÀÀÆ÷´ÓÒ»¸öÒ³Ãæ½øÐÐÌøת£¬ÏÂÃæ¿´¾ßÌåÄÚÈÝ£º
--------------
1¡¢a±êÇ©µÄÒ³ÄÚÌøת£º
ÔÚbody±êÇ©ÄÚÊäÈëÈçÏ´úÂ룺
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d ......
HtmlÊÇ·ñÊDZê×¼ÎĵµÍùÍùÓ°ÏìjsµÄÖ´ÐÐЧ¹û¡£ ±ÈÈ磺ÔÚIE6Ï document.documentElement.clientHeight Õâ¸öº¯ÊýÊÇ»ñÈ¡¿ÉÊÓ´°¿ÚÎĵµ¸ß¶È£¬Èç¹ûhtml²»ÊDZê×¼Îĵµ Ôò·µ»ØÖµÊÇÁã.¶ødocument.body.clientHeight ÄÜ·µ»ØÏàÓ¦µÄÖµ.Ïà·´Èç¹ûÊDZê×¼Îĵµ document.body.clientHeight ·µ»ØÖµÊÇ0;
ÀàËƵĻ¹ÓÐdocument.documentElemen ......