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

×Ö·û´®½ØÈ¡£¨°üÀ¨html£¬BasicPage.csÀàʹÓã©

    /// <summary>
    /// ½Ø¶Ï×Ö·û´®(ÖÐÎļÆÒ»¸ö×Ö·û¿í¶È£¬ÆäËü¼Æ°ë¸ö×Ö·û¿í¶È)
    /// </summary>
    /// <param name="input">Ðè½Ø¶ÏµÄ×Ö·û´®</param>
    /// <param name="length">×Ö·û¿í¶È</param>
    /// <returns>½Ø¶Ï×Ö·û´®(´ø"...")</returns>
    protected string truncatedChars(string input, int length)
    {
        input = Server.HtmlEncode(input);
        if (input.Length > length)
        {
            int pos = 0;
            string result = "";
 
            foreach (char chr in input)
            {
                if (Regex.IsMatch(chr.ToString(), "[^\x00-\xff]"))
                {
                    pos += 2;
                }
                else
                {
                    pos += 1;
                }
                result += chr.To


Ïà¹ØÎĵµ£º

³£ÓÃÕýÔò±í´ïʽ´óÈ«£¡£¨ÀýÈ磺ƥÅäÖÐÎÄ¡¢Æ¥Åähtml£©

³£ÓÃÕýÔò±í´ïʽ´óÈ«£¡£¨ÀýÈ磺ƥÅäÖÐÎÄ¡¢Æ¥Åähtml£©
 Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]  
¡¡¡¡ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
¡¡¡¡Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
¡¡¡¡ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
¡¡¡¡Æ ......

htmlÊäÈë¿òÈ¥³ý¼ÇÒ书ÄÜ

IEÌṩÁËÒ»¸ö×Ô¶¯Íê³É¹¦ÄÜ¿ÉÒÔ¼ÇÒäÎÒÃǵÄÊäÈëÄÚÈÝ(ÈçµÇ¼ÕʺŵÈ),·½±ãÏÂÒ»´Î¿ìËÙµØÂ¼ÈëÀàËÆ×ÊÁÏ.ÕâȷʵÊÇÒ»¸ö·Ç³£ÓѺõŦÄÜ,
×Ô¶¯Íê³É¹¦ÄÜ£¬Ö»Ðè°ÑAUTOCOMPLETEÉèΪoff¼´¿É£¬Èç:
Õû¸ö±íµ¥½ûÖ¹×Ô¶¯Íê³É
HTML code
<FORM method=post action="submit.asp" AUTOCOMPLETE="OFF">
½ûÖ¹Îı¾¿ò×Ô¶¯Íê³É
HTML code ......

FCKeditorÌύʧ°Ü·µ»ØÄÚÈݱähtmlµÄ½â¾ö·½·¨

ÔÚFckEditor.Net 2.64ºÍasp.net 2.0µÄ»·¾³Ï·¢ÏÖÈçÏÂÎÊÌ⣺Èç¹ûä¯ÀÀÆ÷Ö´Ðзµ»Ø¶¯×÷£¬FckEditor±à¼­¿òÄÚÏÔʾhtml´úÂ룺
¡¡¡¡½â¾ö·½·¨ÊÇ£ºÐÞ¸ÄÎļþFCKEditor\editor\fckeditor.html£¬ÔÚwindow.onload = function()µÄº¯ÊýµÚÒ»ÐÐÌí¼Ó
¡¡¡¡FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value);
¡¡¡¡Èç¹ûÎÊÌâ²» ......

¹ØÓÚÔÚhtmlÒ³ÃæÖд´½¨fckeditor

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Îı¾±à¼­Æ÷</title>
     <meta http-equiv="C ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ