ÔÚhtmlÖпØÖÆ×Ô¶¯»»ÐÐ
ÔÚÍøÉÏËÑÑ°µ½2Öнâ¾ö·½°¸£º
1.ÆäʵֻҪÔÚ±í¸ñ¿ØÖÆÖÐÌí¼ÓÒ»¾ä
<td style="word-break:break-all">¾Í¸ã¶¨ÁË¡£
ÆäÖпÉÄܶÔÓ¢ÎÄ»»ÐпÉÄÜ»á·Ö¿ªÒ»¸öµ¥´ÊÎÊÌ⣺½â¾öÈçÏ£º
Óï·¨£º
word-break : normal | break-all | keep-all
²ÎÊý£º
normal : ¡¡ÒÀÕÕÑÇÖÞÓïÑԺͷÇÑÇÖÞÓïÑÔµÄÎı¾¹æÔò£¬ÔÊÐíÔÚ×ÖÄÚ»»ÐÐ
break-all : ¡¡¸ÃÐÐΪÓëÑÇÖÞÓïÑÔµÄnormalÏàͬ¡£Ò²ÔÊÐí·ÇÑÇÖÞÓïÑÔÎı¾ÐеÄÈÎÒâ×ÖÄڶϿª¡£¸ÃÖµÊʺϰüº¬Ò»Ð©·ÇÑÇÖÞÎı¾µÄÑÇÖÞÎı¾
keep-all : ¡¡ÓëËùÓзÇÑÇÖÞÓïÑÔµÄnormalÏàͬ¡£¶ÔÓÚÖÐÎÄ£¬º«ÎÄ£¬ÈÕÎÄ£¬²»ÔÊÐí×ֶϿª¡£Êʺϰüº¬ÉÙÁ¿ÑÇÖÞÎı¾µÄ·ÇÑÇÖÞÎı¾
2.style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word" Äã¿ÉÐÞ¸ÄΪָ¶¨µÄ´óСÈç 200px
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
Function RemoveHTML(strText)
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
RemoveHTML = RegEx.Replace(strText, "")
RemoveHTML = replace(RemoveHTML," "," ")
End Function
ÕâÊÇ×î»ù±¾µÄÕýÔòÌæ»»£¬ÓÐijЩÌØÊâ×Ö·û»¹Ã»¹ýÂË£¬¿É×ÔÐÐÌí¼Ó ......
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPÐÒéµÄÏìӦͷ±¨ÎÄ¡£meta
±êÇ©ÓÃÓÚÍøÒ³µÄ<head>Óë</head>ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta
µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv¡£nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷ÒýÇæ»úÆ÷È˲éÕÒ¡¢·ÖÀࣨĿ
Ç°¼¸ºõËùÓеÄËÑË÷ÒýÇ涼ʹÓÃÍøÉÏ»úÆ÷ÈË×Ô¶¯²éÕ ......
1. web.config
<connectionStrings>
<add name ="myconn" connectionString="Data Source=who\SQLEXPRESS; Initial Catalog=dbname;Integrated Security=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
2.
string htmlPath = "D:\\htmlFiles";
......
AjaxÏÖÔÚÒѾÊÇÏ൱Á÷Ðеļ¼ÊõÁË£¬Ajax²»½öÊÇÏë·þÎñÆ÷¶Ë·¢ËÍÏûÏ¢£¬¸üÖØÒªµÄÊÇÎÞˢеÄÖØÔØÒ³Ãæ¡£
Èç¹ûÒ³Ãæµ¥´¿µÄʹÓÃjsÀ´´´½¨£¬ÒªÐ´´óÁ¿µÄ´úÂ룬¶øÇÒ²»Ö±¹Û¡£
ÔÚasp.netÖУ¬ÆäʵÎÒÃÇ¿ÉÒÔ´´½¨Óû§×Ô¶¨Òå¿Ø¼þ£¬Í¨¹ýAjaxÇëÇó·µ»ØÓû§×Ô¶¨Òå¿Ø¼þHTML´úÂë¡£
public static string RangerUsControl(string controlName) ......
Îı¾¸ñʽ»¯±êÇ©
±êÇ©ÃèÊö
<b>
¶¨Òå´ÖÌåÎı¾¡£
<big>
¶¨Òå´óºÅ×Ö¡£
<em>
¶¨Òå×ÅÖØÎÄ×Ö¡£
<i>
¶¨ÒåбÌå×Ö¡£
<small>
¶¨ÒåСºÅ×Ö¡£
<strong>
¶¨Òå¼ÓÖØÓïÆø¡£
<sub>
¶¨Òåϱê×Ö¡£
<sup>
¶¨ÒåÉϱê×Ö¡£
<ins>
¶¨Òå²åÈë×Ö¡£
<del>
¶¨Òåɾ³ý×Ö¡£ ......