網上有人說如下修改就可以,不過也要看你用的是什么系統,程序員的水平就決定了兼容性問題,不過可以試試。
this.EnableSafari = true ; // This is a temporary property, while Safari support is under development.
把false修改為true之后顯示正常
應該是chrome使用的內核WebKit的問題,需要修改safari的支持
建議以后廣大程序員開發的時候要注意瀏覽器的兼容性問題。
fckeditor 沒顯示有問題
沒一點格式 參考下吧
<html><head> <script src=/fckeditor/fckeditor.js"></script></head><body><form action="shou.jsp" method="post" target="_blank"> <script>var editor = new FCKeditor('message');editor.BasePath='/fckeditor/';editor.Height=280;editor.ToolbarSet='Default';editor.Create();</script><input type="submit" value="提交" name="button"></form></body></html>
FCKeditor 沒顯示,出現空白頁面
路勁問題吧 在web.config 里面設置fck的相對路徑
<appSettings><add key="FCKEditor:BasePath" value="/FCKeditor"/><add key="FCKeditor:UserFilesPath" value="/UploadFiles/"/></appSettings>
上面的是你Fck所在的相對路徑
下面的是fck上傳文件的文件夾路徑不過VeVb武林網今天弄得一個后臺由于是老板本,他使用了php判斷當前瀏覽器與版本,chrome下編輯就不會出現的。需要修改一下函數就可以了。
原來的函數
function IsCompatible() { global $HTTP_USER_AGENT ; if ( isset( $HTTP_USER_AGENT ) ) $sAgent = $HTTP_USER_AGENT ; else $sAgent = $_SERVER['HTTP_USER_AGENT'] ; if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) { $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; return ($iVersion >= 5.5) ; } else if ( strpos($sAgent, 'Gecko/') !== false ) { $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; return ($iVersion >= 20030210) ; } else return false ; }
修改后的函數
function IsCompatible() { global $HTTP_USER_AGENT ; if ( isset( $HTTP_USER_AGENT ) ) $sAgent = $HTTP_USER_AGENT ; else $sAgent = $_SERVER['HTTP_USER_AGENT'] ; if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) { $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; return ($iVersion >= 5.5) ; } else if ( strpos($sAgent, 'Gecko/') !== false ) { $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; return ($iVersion >= 20030210) ; } else if ( strpos($sAgent, 'Chrome') !== false ) { return 1; } else return false ; }
經過測試這樣就正常顯示了,解決問題。還有個問題那就是chrome下獲取日期不能用getYear,需要用getFullYear(),但也有更好的解決方法,大家可以參考這篇文章。