ʵÏÖHTMLµÄ¼òµ¥Ñ¹Ëõ
PageReleaserÐèÒªÒ»ÖÖHTMLµÄѹËõËã·¨£¬GoogleÁ˺ܾ㬷¢ÏÖÈç¹ûÖ»ÊǼòµ¥È¥³ý¿Õ°×ºÍ×¢Ê͵Ļ°£¬Ê¹ÓÃXLinq¾Í¿ÉÒÔÇáÒ×µÄʵÏÖ ÏÈ¿´¿´MSDNÊÇÔõô˵µÄ£º Ò»ÖÖ³£Ó÷½°¸ÊǶÁÈ¡Ëõ½øµÄ XML£¬ÔÚÄÚ´æÖд´½¨Ò»¸öûÓÐÈκοհ×Îı¾½Úµã£¨¼´²»±£Áô¿Õ°×£©µÄ XML Ê÷£¬¶Ô¸Ã XML Ö´ÐÐijЩ²Ù×÷£¬È»ºó±£´æ´øËõ½øµÄ XML¡£ÔÚÐòÁл¯´ø¸ñʽµÄ XML ʱ£¬Ö»±£Áô XML Ê÷ÖÐÓÐÒâÒåµÄ¿Õ°×¡£ÕâÊÇ LINQ to XML µÄĬÈÏÐÐΪ¡£ ÁíÒ»¸ö³£¼ûµÄÇé¿öÊǶÁÈ¡ºÍÐÞ¸ÄÒѾÓÐÒâËõ½øµÄ XML¡£Äú¿ÉÄܲ»ÏëÒÔÈκη½Ê½¸ü¸ÄÕâÖÖËõ½ø¡£ÈôÒªÔÚ LINQ to XML ÖÐÖ´Ðд˲Ù×÷£¬ÄúÒªÔÚ¼ÓÔØ»ò½âÎö XML ʱ±£Áô¿Õ°×£¬²¢ÔÚÐòÁл¯ XML ʱ½ûÓøñʽÉèÖᣠ¼òµ¥µÄ˵£¬XDocumentÔØÈëʱ£¬Ä¬ÈÏʹÓÃLoadOptions::None£¬×Ô¶¯È¥µôXMLµÄ¿Õ°×£»±£´æʱ£¬Ä¬ÈÏʹÓÃSaveOptions::None£¬×Ô¶¯¸ñʽ»¯XML¡£ Ò²¾ÍÊÇ˵£¬Ê¹ÓÃXDocument½«Ò»¸öHTMLÎĵµ´ò¿ªÊ²Ã´Ò²²»×÷¾Í±£´æ£¬ÆäʵµÈÓÚʵÏÖÁËHTMLµÄ¸ñʽ»¯¡£ ¶øÈç¹ûÔÚ±£´æʱ£¬Ê¹ÓÃSaveOptions::DisableFormatting²ÎÊý£¬¿´ËÆÒª±£´æXMLµÄ¿Õ°×£¬ÓÉÓÚÔØÈëʱËùÓпհ׶¼±»É¾µôÁË£¬ÆäʵµÈÓÚɾ³ýÁËËùÓпհף¬ÓÚÊÇÈ¥µô¿Õ°×¾ÍÕâÑùʵÏÖÁË¡£ ÖÁÓÚɾµô×¢ÊÍÒ²ºÜ¼òµ¥£¬Ö»ÊÇÐèҪעÒ⣬һ°ãÒ³ÃæǶÈëJavaScript»áʹÓÃ×¢Êͽڵã°ü¹ü£¬ÐèÒªÀýÍâ´¦Àí¡£ Õû¸öHTMLѹËõ´úÂëÈçÏ£º var nodes = from s in doc.DescendantNodes()
where s.NodeType == XmlNodeType.Comment &&
string.Compare( s.Parent.Name.LocalName, "script", true ) != 0
select s; nodes.Remove();
doc.Save( sm.OutputPath + "index.html", SaveOptions.DisableFormatting ); ¼òµ¥°É£¬²»¹ýHTML²»ÄÜÖ±½ÓʹÓÃXML½âÎöÆ÷£¬ÐèÒªÔ¤ÏÈת»»ÎªXHTML£¬µã»÷²ì¿´×ª»»ÊµÏÖ¡£
Ïà¹ØÎĵµ£º
\webapps\test ·¾¶ÏÂThreeParams.html:
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>TreeParams</title>
</head>
<body>
<form method="get" onsubmit="return true" name="form1" action="/test/tp">
<tabl ......
<HTML>
<HEAD>
<title>WEBÒ³Ãæµ¼³öΪEXCELÎĵµµÄ·½·¨
</title>
</HEAD>
<body>
<BR>
<table id = "PrintA" width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor = "#61FF13">
<TR style="text-align : center;" mce_style="text-ali ......
ÈçºÎ±íʾÉϼ¶Ä¿Â¼
../±íʾԴÎļþËùÔÚĿ¼µÄÉÏÒ»¼¶Ä¿Â¼£¬../../±íʾԴÎļþËùÔÚĿ¼µÄÉÏÉϼ¶Ä¿Â¼£¬ÒÔ´ËÀàÍÆ¡£
¼ÙÉèinfo.html·¾¶ÊÇ£ºc:\Inetpub\wwwroot\sites\blabla\info.html
¼ÙÉèindex.html·¾¶ÊÇ£ºc:\Inetpub\wwwroot\sites\index.html
ÔÚinfo.html¼ÓÈëindex.html³¬Á´½ÓµÄ´úÂëÓ¦¸ÃÕâÑùд£º
<a href ......
<html>
<head>
<script>
function locking(){
document.all.ly.style.display="block";
document.all.ly.style.width=document.body.clientWidth;
document.all.ly.style.height ......
ת×Ôhttp://www.cnblogs.com/jujusharp/archive/2009/12/20/10-Rare-Html-Tag-You-Should-Know.html
ÀïÃæÓÐЩ±ê¼Ç,»¹ÕæÊÇûÓùý,×Ô¼ºÒ²¼ÇÒ»ÏÂÁË.
ÔÎĵØÖ·:http://net.tutsplus.com/articles/web-roundups/10-rare-html-tags-you-really-should-know/
Èç½ñ,Web¿ª·¢¹¤³ÌʦÔÚѧϰºÍ¹¤×÷ÖÐÍ ......