Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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³õ²½Ñ§Ï°±Ê¼Ç

html ÍøÒ³ÃèÊöÓïÑÔ
htmlµÄ»ù±¾¿ò¼Ü
<head>                                      //±êǩͷ
<javacript>                         &nb ......

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

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

Ò×ÓïÑÔ´úÂëתHTML ²âÊÔ(Ô´Â뷽ʽ)


³ÌÐò¼¯Ãû
±£Áô
±£Áô
±¸×¢
´°¿Ú³ÌÐò¼¯1
 
 
 
×Ó³ÌÐòÃû
·µ»ØÖµÀàÐÍ
¹«¿ª
±¸×¢
_°´Å¥2_±»µ¥»÷
 
 
 
дµ½Îļþ (“c:\ecode.txt”, µ½×Ö½Ú¼¯ (³¬¼¶±à¼­¿ò1.ÄÚÈÝ))
Ö´ÐР(4, “ecode_To_html.exe”, “c:\ecode.txt& ......

HTMLÔªËØ¼°¿Ø¼þʼþÒ»ÀÀ±í


HTMLÔªËØ¼°¿Ø¼þʼþÒ»ÀÀ±í
Ò»°ãʼþ
ʼþ
ä¯ÀÀÆ÷Ö§³Ö
ÃèÊö
onClick
HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Êó±êµã»÷ʼþ£¬¶àÓÃÔÚij¸ö¶ÔÏó¿ØÖƵķ¶Î§ÄÚµÄÊó±êµã»÷
onDblClick
HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Êó±êË«»÷ʼþ
onMouseDown
HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 ......

html fileÉÏ´«

ǰ̨  <form id="form1" runat="server" enctype="multipart/form-data">
       <input type="flie" id="xxx"> 
        </form>
ºǫ́ͨ¹ý HttpPostedFile f = Request.Files["xxx"]
½ÓÊվͿÉÒÔÁË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ