È¥³ýHTML¸ñʽ ½ØÈ¡×Ö·û´®
//½ØÈ¡²¿·ÖÄÚÈÝ·½·¨
public static string strvalue(string value, int length)
{
string strValue = NoHTML(value);// È¥³ýHTML±ê¼Ç
if (strValue.Length > length)
{
return strValue.Substring(0, length) + "...";
}
else
{
return strValue;
}
}
#region »Ø³µ,¿Õ¸ñ¹ýÂË
/**/
/// <summary>
/// È¥³ýHTML±ê¼Ç
/// </summary>
/// <param name="NoHTML">°üÀ¨HTMLµÄÔ´Âë </param>
/// <returns>ÒѾȥ³ýºóµÄÎÄ×Ö</returns>
public static string NoHTML(string Htmlstring)
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @"<script[^>]*?>.*?</script>", "",
RegexOpti
Ïà¹ØÎĵµ£º
HTML±í¸ñºÜÈÝÒ×ÉÏÊÖ£¬Ò»¶Ñtr¼Ótd¾Í¿ÉÒÔÏÔʾһÕűí¸ñÁË¡£¸´ÔÓÒ»µã¾ÍÊÇÔÙ¼ÓÉÏth£¬colgroup£¬tbody£¬tfooter£¬captionÖ®Àà¡£ÕâЩHTMLÀïÃæµÄ¸÷ÖÖÔªËØµÄÈ·¼ÓÇ¿Á˱í¸ñµÄʵÓÃÐÔºÍÓïÒ廯£¬µ«table±¾Éí¾ÍÓкܴóѧÎÊŶ£¬±Ï¾¹ÊÇÕû¸ö±í¸ñµÄ¸ù°¡£¡
½ñÌìÏÂÃæÒª×ܽá°üº¬¶Ôtable±¾ÉíµÄÊôÐÔ¹éÄɺÍtableרÓõÄCSS±È½Ï£º
attributes VS CSS ......
Ê×ÏÈдһ¸öÒ³Ãæ£¬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
<head>
<title></title>
</head>
<body>
<input id="Button1" type="button" value="button" />
</body>
</html>
½«Æä±£´ ......
³ÌÐò¼¯Ãû
±£Áô
±£Áô
±¸×¢
´°¿Ú³ÌÐò¼¯1
×Ó³ÌÐòÃû
·µ»ØÖµÀàÐÍ
¹«¿ª
±¸×¢
_°´Å¥2_±»µ¥»÷
дµ½Îļþ (“c:\ecode.txt”, µ½×Ö½Ú¼¯ (³¬¼¶±à¼¿ò1.ÄÚÈÝ))
Ö´ÐÐ (4, “ecode_To_html.exe”, “c:\ecode.txt& ......
CSDN²©¿Í£ºhttp://writeblog.csdn.net/PostList.aspx
·½·¨Ò»£ºÓüÇʱ¾´ò¿ªindex.htm£¬Ìæ»»£º10pt ---> 12pt£¬±£´æºó£¬ÓÃIE´ò¿ª´Ëhtm£¬ctrl+a--ctrl+c£¬Õ³Ìùµ½²©¿Í¾ÍÐÐÁË£¡
·½·¨¶þ£ºÔÚcsdn·¢±íÎÄÕÂʱ£¬Ñ¡Ôñ¡¾Í¼Ïñ¡¿ºóÃæµÄ¡¾HTML¡¿°´Å¥£¬ÔÙ°Ñindex.htmÔ´ÂëÕ³ÌùÉÏÈ¥£¬Ê²Ã´Ò²²»ÓøĶ¯£¡ ......
Zen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
À´Ô´£ºhttp://www.javaeye.com/news/13149
Òë×Ô£ºSmashing Magazine
ÖÐÎÄ£ºZen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
ÔÚ±¾ÎÄÖÐÎÒÃǽ«Õ¹Ê¾Ò»ÖÖеÄʹÓ÷ÂCSSÑ¡ÔñÆ÷µÄÓï·¨À´¿ìËÙ¿ª·¢HTMLºÍCSSµÄ·½·¨¡£ËüÓÉSergey Chikuyonok¿ª·¢¡£
ÄãÔÚдHTML´úÂë(°üÀ¨ËùÓбêÇ©¡¢ÊôÐÔ¡¢ ......