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

È¥³ý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±í¸ñרÓÐÊôÐÔºÍCSS


HTML±í¸ñºÜÈÝÒ×ÉÏÊÖ£¬Ò»¶Ñtr¼Ótd¾Í¿ÉÒÔÏÔʾһÕűí¸ñÁË¡£¸´ÔÓÒ»µã¾ÍÊÇÔÙ¼ÓÉÏth£¬colgroup£¬tbody£¬tfooter£¬captionÖ®Àà¡£ÕâЩHTMLÀïÃæµÄ¸÷ÖÖÔªËØµÄÈ·¼ÓÇ¿Á˱í¸ñµÄʵÓÃÐÔºÍÓïÒ廯£¬µ«table±¾Éí¾ÍÓкܴóѧÎÊŶ£¬±Ï¾¹ÊÇÕû¸ö±í¸ñµÄ¸ù°¡£¡
½ñÌìÏÂÃæÒª×ܽá°üº¬¶Ôtable±¾ÉíµÄÊôÐÔ¹éÄɺÍtableרÓõÄCSS±È½Ï£º
attributes VS CSS ......

[HTML] document domain µÄ˵Ã÷

ÏÈÀ´¿´¶Î´úÂ룺
document.domain = 'ray.com';
Õâ¶Î´úÂëµ½µ×ÊÇʲôÒâË¼ÄØ£¿
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´ÏÂHTML DOM ¹ØÓÚÕâ¸öµÄ˵Ã÷£º
domain of type DOMString, readonlyThe domain name of the server that served the document, or null if the server cannot be identified by a domain name.
 Õâ¶Î»°µÄÒâ˼ÊÇÕâ¸öÖµÊÇDO ......

C#.netÖÐÓÃWinForm½ÓÊÕhtmlÒ³ÃæÏûÏ¢µÄ³ÌÐò

Ê×ÏÈдһ¸öÒ³Ãæ£¬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
 <head>
  <title></title>
 </head>
 <body>
        <input id="Button1" type="button" value="button" />
 
 </body>
</html>
½«Æä±£´ ......

ÓÃ"blog_backup"µ¼³öµÄhtmlÎļþ£¬Õ³Ìùµ½CSDN×¢Òâ

CSDN²©¿Í£ºhttp://writeblog.csdn.net/PostList.aspx
·½·¨Ò»£ºÓüÇʱ¾´ò¿ªindex.htm£¬Ìæ»»£º10pt ---> 12pt£¬±£´æºó£¬ÓÃIE´ò¿ª´Ëhtm£¬ctrl+a--ctrl+c£¬Õ³Ìùµ½²©¿Í¾ÍÐÐÁË£¡
·½·¨¶þ£ºÔÚcsdn·¢±íÎÄÕÂʱ£¬Ñ¡Ôñ¡¾Í¼Ïñ¡¿ºóÃæµÄ¡¾HTML¡¿°´Å¥£¬ÔÙ°Ñindex.htmÔ´ÂëÕ³ÌùÉÏÈ¥£¬Ê²Ã´Ò²²»ÓøĶ¯£¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ