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

²»Ó¦ºöÊÓµÄHTMLÓÅ»¯


×÷Õß




´Þ¿µ

·¢²¼ÓÚ
2010Äê5ÔÂ13ÈÕ ÏÂÎç10ʱ14·Ö









Ëæ×ÅWeb2.0¼¼ÊõµÄ²»¶Ï·¢Õ¹£¬WebÇ°¶ËµÄÓÅ»¯Êܵ½Ô½À´Ô½¶àµÄ¹Ø×¢£¬ÌرðÊÇJavaScriptºÍCSSÓÅ»¯µÄÌÖÂÛÒ»Ö±ÊÇÈȵ㣬¹¤¾ßÒ²
Ïà¶Ô·á¸»£¬¶ø¶ÔHTMLÓÅ»¯ÔòÓÐËùºöÊÓ£¬×î½ü£¬À´×԰ٶȷºÓû§ÌåÑéÍŶÓ
µÄ¹¤³ÌʦMiller
£¨chenminliang£©×«
ÎÄ
Ç¿µ÷ÁËHTMLÓÅ»¯µÄÖØÒªÐÔºÍÏà¹Ø¼¼ÇÉ¡£
MillerÊ×ÏȾÙÀý˵Ã÷ÁËHTMLÓÅ»¯ÉÔÏÔºöÂÔµÄÊÂʵ£º
ÔÚSteve Souders
µÄ´ó×÷¡¶Even Faster Web Sites
¡·
ÖÐ̸µ½·Ç³£¶àÓÐЧµÄÇ°¶ËÓÅ»¯·½·¨£¬ÀýÈçJavascriptµÄ¼ÓÔØ¡¢CSSÑ¡Ôñ·û¡¢Í¼Æ¬ÓÅ»¯¡¢gzip¡¢iframeÎÊÌâµÈ£¬Î¨¶ÀûÓÐϸ˵HTMLÓÅ»¯¡£
ËûÇ¿µ÷HTMLÓÅ»¯ËäÈ»¿´ËÆ΢С£¬µ«ÊDz»¿ÉºöÊÓ£º
ÔÚÕû¸öÇ°¶ËµÄ¹¹³ÉÖУ¬HTMLÊDZز»¿ÉÉÙµÄÒ»²¿·Ö£¬¶øÇÒÊÇÕæÕýµÄչʾ“Ç°¶Ë”¡£ËäÈ»Ó붯éüÊ®¼¸KµÄJavascriptÏà
±È£¬HTMLµÄ´óСÔÚÕû¸öÒ³Ãæ×ÊÔ´ÖÐÒ»°ã²»»áռ̫¶àµÄ±ÈÖØ£¬¶øÇÒ»¹ÓÐGzip£¬µ«ÊÇÊÂʵ±íÃ÷£¬´ó¶àÊýÒ³Ã涼ÓнϴóµÄѹËõÓàµØ£¬¼´Ê¹ÊÇGzip¹ýºóÈÔÈ»Äܼõ
С¿É¹ÛµÄÌå»ý...
MillerÔÚÎÄÖÐ×ܽáÁËHTMLÓÅ»¯µÄ¸÷ÖÖ·½·¨£¬½«Æä·ÖΪÁ½ÀࣺÂÌÉ«¹æÔò
——ÔÚ¸÷ÀàÒ³ÃæÖÐÊÊÓÃÇÒÎÞº¦ºÍ³ÈÉ«¹æÔò
——
ÔÚijЩ¾ßÌåµÄÇé¿öϲÅÊÊÓûòÕßÓÐÎ¥±ê×¼¡£
ÂÌÉ«¹æÔò¿ÉÒÔ¸ÅÀ¨ÎªÒÔϼ¸ÖÖ£º
ʹÓÃÏà¶ÔURL
£¬Ä³Ð©href¡¢srcÊôÐÔÈç¹ûÓ뵱ǰҳÃæ´¦ÓÚͬһÓòÃûÏ£¬ÔòʹÓÃÏà¶ÔURLÄܹ»½ÚÊ¡ÖÁÉÙÒ»¸öÓòÃûµÄ³¤¶È¡£
ɾ³ýHTTP»òÕßHTTPS
£¬¾ø¶ÔURL¶¼ÒÔHTTP»òHTTPSµÈЭÒéÍ·¿ªÊ¼£¬Èç¹ûÄÜÈ·¶¨URLµÄЭÒéÓ뵱ǰҳÃæURL
µÄЭÒéÊÇÒ»Öµģ¬»òÕß˵¸ÃURLÔÚ¶àÖÖЭÒéϾùÊÇ¿ÉÓõģ¬Ôò¿ÉÒÔ¿¼ÂÇɾ³ýÕâ¸öЭÒéÍ·¡£
ɾ³ý×¢ÊÍ
£¬¿¼ÂDz»±ØÒªµÄIEÌõ¼þ×¢ÊͺÍCDATA×¢Êͼ°×Ô¶¨Òå×¢ÊÍ¡£
ѹËõ¿Õ°×·û
£¬¶ÔÓÚ¶àÊý±êÇ©£¬¿ÉÒÔͨ¹ýɾ³ý¶àÓàµÄ¿Õ°×·ûÀ´¼õÉÙHTMLÌå»ý£¬µ«ÊǶÔÓÚpreµÈÊÇÀýÍâ¡£
ѹËõinline css & Javascript
£¬²»¹Üinline»¹ÊÇexternal£¬¶¼ÐèҪѹËõ£¬ÕâÊÇ
¼õСÌå»ýµÄ×îÖ±½ÓµÄ·½Ê½¡£
CSS&Javascript¾¡Á¿ÍâÁ´
£¬²»½ö¿ÉÒÔ¼õÉÙÌå»ý£¬»¹Äܹ»³ä·ÖÀûÓÃä¯ÀÀÆ÷µÄ»º´æ»úÖÆ¡£
ɾ³ýÔªËØĬÈÏÊôÐÔ
£¬ÔÚHTML¹æ·¶
ÖУ¬ºÜ¶àHTMLÔªËصÄÊôÐÔÊÇÓÐĬÈÏÖµµÄ£¬¶ÔÓÚÕâЩĬ
ÈÏÖµ¿ÉÒÔĨȥ²»Ð´¡£
³ÈÉ«¹æÔò¾Í²»Ò»Ò»ÁоÙÁË£¬¸ÐÐËȤµÄ¶ÁÕß¿ÉÒÔÖ±½Ó²é¿´Ô­
ÎÄ
¡£
³ýÁËÓÅ»¯¼¼ÇÉÖ®Í⣬MillerÌرðÍƼöÁËÁ½¿îÏà¹Ø¹¤¾ß——Absolute HTML CompressorºÍPageSpeed1.6£º
HTMLÓÅ»¯¹¤¾ßÄ¿Ç°±È½ÏÀíÏ


Ïà¹ØÎĵµ£º

È¡¶ÔÓ¦ÍøÖ·µÄhtmlÔ´Âë

        System.Net.WebClient wc = new System.Net.WebClient();
        Byte[] pageData = wc.DownloadData("httP://www");
        string s = System.Text.Encoding.Default.GetString(pageData); ......

NET Win HTML Editor ControlÆƽâ¹ý³ÌÈ«¼Ç¼

Ç°¼¸Ìì×öÏîÄ¿¡£ÐèÒªÓõ½Ò»¸öWinFormµÄHTMLµÄ±à¼­ºÍÏÔʾ¿Ø¼þ¡£.NET×Ô¼º²¢Ã»ÓÐÌṩÕâ·½ÃæµÄ¿Ø¼þ¡£È¥Googel°Ù¶ÈÁËһϡ£Ã»ÓÐÕÒµ½ºÏÊʵÄ.NET¿Ø¼þ¡£ÎÞÄÎÈ¥Ó¢ÎÄGoogelÁËһϡ£¹ûÈ»·¢ÏÖÁËÒ»¿îÃûΪ£º.NET Win HTML Editor Control 3.2µÄ¿Ø¼þ¡£ÏÂÔØÅäÖû·¾³ÊÔÓ᣷¢ÏÖÃâ·Ñ°æÌṩȫ¹¦ÄÜÊÔÓá£Î¨Ò»²»ºÃµÄµØ·½¾ÍÊÇÔڱ༭ÇøÓÐÒ»¸ö×¢²áµÄÁ ......

HTML ¼òÊ·


HTML ÊÇ Web ͳһÓïÑÔ£¬ÕâЩÈÝÄÉÔÚ¼âÀ¨ºÅÀïµÄ¼òµ¥±êÇ©£¬¹¹³ÉÁËÈç½ñµÄ Web¡£1991 Ä꣬Tim Berners-Lee ±àдÁËÒ»·Ý½Ð×ö “HTML ±êÇ©”µÄÎĵµ£¬ÀïÃæ°üº¬ÁË´óÔ¼20¸öÓÃÀ´±ê¼ÇÍøÒ³µÄ HTML ±êÇ©¡£ËûÖ±½Ó½èÓà SGML µÄ±ê¼Ç¸ñʽ£¬Ò²¾ÍÊǺóÀ´ÎÒÃÇ¿´µ½µÄ HTML ±ê¼ÇµÄ¸ñʽ¡£±¾ÎĽ²ÊöÁË HTML ÕâÃÅ Web ±ê¼ÇÓïÑԵķ¢Õ¹¼òÊ·¡£
......

ÓйØÈ¥µôhtmlÖеÄÁ½¶Ë×Ö·û

ÈçºÎÓÐÒ»¸ö×Ö·û´®ÊÇÕâÑùµÄÐÎʽstr = "&bbbLAA";
ÏëµÃµ½"L"µÄ»°¿ÉÒÔÕâÑùȥʵÏÖ£º
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
µ÷ÓÃÕâ¸ö·½·¨½«µÃµ½L×ֶΡ£
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
 var sReturnVal = '';
 var nStart ......

HTML ¼òÊ·

HTML ¼òÊ·
      HTML ÊÇ Web ͳһÓïÑÔ£¬ÕâЩÈÝÄÉÔÚ¼âÀ¨ºÅÀïµÄ¼òµ¥±êÇ©£¬¹¹³ÉÁËÈç½ñµÄ Web¡£1991 Ä꣬Tim Berners-Lee ±àдÁËÒ»·Ý½Ð×ö “HTML ±êÇ©”µÄÎĵµ£¬ÀïÃæ°üº¬ÁË´óÔ¼20¸öÓÃÀ´±ê¼ÇÍøÒ³µÄ HTML ±êÇ©¡£ËûÖ±½Ó½èÓà SGML µÄ±ê¼Ç¸ñʽ£¬Ò²¾ÍÊǺóÀ´ÎÒÃÇ¿´µ½µÄ HTML ±ê¼ÇµÄ¸ñʽ¡£±¾ÎĽ²Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ