锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
搴熻瘽涓嶅璇?瑙e喅鏂規硶:
1. IE : 鍦ㄧ浉搴斾綅緗鍔犲涓嬫牱寮忚〃瀹氫箟鍗沖彲
紼嬪簭浠g爜 紼嬪簭浠g爜
word-break: break-all;
2. FF : Firefox騫朵笉鍍廔E閭f牱鍚瘽,鑷粠FF鐨勭涓涓増鏈嚦浠?浠嶇劧娌℃湁瑙e喅姝ら棶棰?鑰屼笂闈㈢殑鏂規硶涔熶笉璧蜂綔鐢?鍙兘鐢╦avascript鏉ユ帶鍒朵簡,灝嗗涓嬩唬鐮佹斁緗湪闇瑕佹姌琛屾樉紺虹殑涓嬮潰鍗沖彲
紼嬪簭浠g爜 紼嬪簭浠g爜
<script language="javascript" type="text/javascript" defer="defer">
javascript:(function(){var D=document; F(D.body); function F(n){var u,r,c,x; if(n.nodeType==3){ u=n.data.search(/"S{10}/); if(u>=0) { r=n.splitText(u+10); n.parentNode.insertBefore(D.createElement("WBR"),r); } }else if(n.tagName!="STYLE" && n.tagName!="SCRIPT"){for (c=0;x=n.childNodes[c];++c){F(x);}} } })();
</script>
The problem is that with images on hosted environments on IIS 6, it’s impossible to control the serving of them without redirecting them through an HTTP handler. That’s not a good idea for several reasons:
Here is what YSlow finds on my website that needs the expires header set to a far future date:
As you can see, it is all my static images that lacks the expires header.
If you run IIS 6 there is no good way of adding an expires header to images unless you have control over the IIS. If your site is hosted then you probably have no control at all. If you are using IIS 7 however, you can very easily add the header in your web.config’s system.webServer section like so:
<staticContent>
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
What happens is that all static content will now have an expires HTTP header set to the year 2020. Static content means anything that isn’t served through the ASP.NET engine such as images, script files and styles sheets. This is one of the very easy tricks that will increase the performance of your site as well as your YSlow score.
銆銆TinyMCE鏄竴涓交閲忕駭鐨勫熀浜庢祻瑙堝櫒鐨勬墍瑙佸嵆鎵寰楃紪杈戝櫒錛岀敱JavaScript鍐欐垚銆傚畠瀵笽E6+鍜孎irefox1.5+閮芥湁鐫闈炲父鑹ソ鐨勬敮鎸併傚姛鑳芥柟闈㈣櫧鐒朵笉鑳界О寰椾笂鏄渶寮猴紝浣嗙粷瀵硅兘澶熸弧瓚沖ぇ閮ㄥ垎緗戠珯鐨勯渶姹傦紝騫朵笖鍔熻兘閰嶇疆鐏墊椿綆鍗曘傚彟涓鐗圭偣鏄姞杞介熷害闈炲父蹇紝濡傛灉浣犵殑鏈嶅姟鍣ㄩ噰鐢ㄧ殑鑴氭湰璇█鏄疨HP錛岄偅榪樺彲浠ヨ繘涓姝ヤ紭鍖栥傛渶閲嶈鐨勬槸錛孴inyMCE鏄竴涓牴鎹甃GPL license鍙戝竷鐨勮嚜鐢辮蔣浠訛紝浣犲彲浠ユ妸瀹冪敤浜庡晢涓氬簲鐢ㄣ?/p>
銆銆
銆銆浣跨敤:
銆銆1銆侀鍏堝皢TinyMCE瑙e帇緙╋紝浼氬緩绔嬪涓嬬殑鐩綍緇撴瀯:
銆銆/tinymce/
銆銆/tinymce/docs/
銆銆/tinymce/docs/zh_cn/
銆銆/tinymce/examples/
銆銆/tinymce/examples/zh_cn/
銆銆/tinymce/jscripts/
銆銆/tinymce/jscripts/tiny_mce/
銆銆/tinymce/jscripts/tiny_mce/langs/
銆銆/tinymce/jscripts/tiny_mce/plugins/
銆銆/tinymce/jscripts/tiny_mce/plugins/
銆銆/tinymce/jscripts/tiny_mce/themes/
銆銆/tinymce/jscripts/tiny_mce/themes/advanced/
銆銆/tinymce/jscripts/tiny_mce/themes/default/
銆銆/tinymce/jscripts/tiny_mce/themes/simple/
銆銆鍏朵腑docs/鐩綍涓嬫槸TinyMCE鐨勮鏄庢枃妗o紝examples/鐩綍涓嬫槸4涓疄渚嬮〉闈紝鑰宩scripts/鐩綍涓嬪垯鏄湡姝g殑JS鏂囦歡銆傚疄闄呬嬌鐢ㄦ椂鍊欏彧闇瑕佸皢jscripts/鐩綍涓婁紶鍒版湇鍔″櫒涓婂嵆鍙?/p>
銆銆2銆佺劧鍚庡湪闇瑕佷嬌鐢═inyMCE鐨勯〉闈㈤噷鍔犲叆濡備笅鐨凧S浠g爜:
<!-- <script src="jscripts/tiny_mce/tiny_mce.js"></script> <script </script> <!-- |
銆銆榪欓噷鍋囪欏甸潰涓巎scripts/澶勪簬鍚屼竴鐩綍涓嬶紝鍚﹀垯璇蜂慨鏀逛唬鐮侀噷鐨勮礬寰勩?/p>
銆銆鐜板湪欏甸潰閲屾墍鏈夌殑textarea鍏冪礌灝變細琚覆鏌撴垚TinyMCE瀹炰緥銆?/p>
銆銆3銆佸垵濮嬪寲閰嶇疆浠嬬粛:
銆銆tinyMCE.init({
銆銆mode : "exact",
銆銆elements : "example_textarea",
銆銆theme : "advanced",
銆銆language :"zh_cn",
銆銆plugins : "flash,emotions,paste",
銆銆theme_advanced_buttons1 : "bold,italic,underline,
銆銆strikethrough, separator, forecolor,backcolor,
銆銆fontselect,fontsizeselect",
銆銆theme_advanced_buttons2_add_before: "cut,copy,
銆銆pastetext,separator",
銆銆theme_advanced_buttons2 : "undo,redo,separator,hr,
銆銆link,unlink,image,flash,separator",
銆銆theme_advanced_buttons2_add :"code,emotions,charmap",
銆銆theme_advanced_buttons3 : "",
銆銆theme_advanced_toolbar_location : "bottom",
銆銆theme_advanced_toolbar_align : "center",
銆銆relative_urls : false,
銆銆remove_script_host : false
銆銆});
銆銆寮曠敤鍐呭
銆銆mode涓巈lements鏄惌閰嶄嬌鐢ㄧ殑錛岀敤鏉ユ寚瀹氭覆鏌搉ame鍦╡lements涓殑HTML鍏冪礌涓篢inyMCE緙栬緫鍣?鍙互鏄疍IV鎴栬匱extarea)錛屾瘮濡?
銆銆mode : "exact",elements : "example_textarea"
銆銆涔熷彲浠ュ崟鐙敤 mode : "textareas",榪欐牱欏甸潰涓墍鏈夌殑Textarea鍏冪礌閮戒細琚覆鏌撱?/p>
銆銆theme 鍙互鏄痑dvanced鎴栬卻imple(鍙楀姛鑳介檺鍒?,涔熷彲浠ヨ嚜瀹氫箟涓婚銆?/p>
銆銆language 甯哥敤閫夋嫨鍙互鏄?en,zh_cn,zh_cn_utf8,zh_tw,zh_tw_utf8(鍜岃璦鍖呭悕瀛楀搴?
銆銆plugins 鐢ㄦ潵鎸囧畾鍔犺澆鐩稿簲鐨勬彃浠訛紝浠ユ彁渚涚壒鍒姛鑳?/p>
銆銆theme_advanced_buttons 鍚庨潰鐨勬暟瀛楃敤鏉ユ寚瀹氬伐鍏鋒爮鐨勭鍑犺錛屽墠3琛屽彲浠ヤ笉鍐欙紝緋葷粺浼氳嚜鍔ㄧ敤榛樿鍥炬爣濉湪鍓?涓伐鍏鋒爮錛屽鏋滀綘涓嶆兂鏄劇ず鍓?琛岋紝鍙互鍍忎緥瀛愰噷闈竴鏍瘋繖鏍峰啓:theme_advanced_buttons3 : "",_add_before鍚庣紑鎸囧湪榛樿宸ュ叿鏍忓墠闈㈠姞鍥炬爣錛宊add鍚庣紑鎸囧湪榛樿宸ュ叿鏍忓悗闈㈠姞鍥炬爣錛屽叿浣撴瘡涓寜閽祫鏂欏彲浠ユ煡鐪嬫枃妗?/doc鐩綍)銆?/p>
銆銆theme_advanced_toolbar_location鍜宼heme_advanced_toolbar_align寰堢畝鍗曪紝涓鐪嬪氨鏄庣櫧銆?/p>
銆銆relative_urls : false,remove_script_host : false涓鑸篃閰嶅浣跨敤錛屽洜涓篢inyMce浼氳嚜鍔ㄦ妸鏈湴閾炬帴鏀規垚鐩稿閾炬帴鐨勫艦寮忥紝姣斿浼氭妸緇濆璺緞http://www.jacklam.cn /2006/03/abc.html鏀規垚鐩稿璺緞/2006/03/abc.html銆傚姞浜嗕笂闈㈢殑浠g爜鍚庡氨涓嶄細鑷姩鏀瑰啓浜嗐?/p>
1.鍏堣鎬庝箞璁劇疆TinyMce緙栬緫鍣ㄧ殑鍐呭 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head runat="server">
</script>
2.鎴戜滑鍐嶆潵鐪嬬湅濡備綍鑾峰彇TinyMce緙栬緫鍣ㄧ殑鍐呭
<script language="javascript" type="text/javascript">
</script>
3.涓嬮潰鏄竴涓畬鏁寸殑asp.net渚嬪瓙錛?br />
涓轟簡浣跨敤璇ョず渚嬶紝鎮ㄥ繀欏諱笅杞芥湁TinyMce錛屽茍鏀劇疆鍦ㄧ洰褰?#8220;tiny_mce”涓?/p>
<%@ Page Language="C#" CodeFile="TinyMceTest.aspx.cs" Inherits="TinyMceTest" validateRequest=false %>