2

アラビア語のデータに問題があります。Chrome では正しく表示されますが、 IEでは正しく表示されません。

「frameset.html」と「legend.html」の 2 つのファイルを使用しています。「legend.html」にはアラビア語のコンテンツがあります。以前は「frameset.html」のフレームの代わりに div を使用していましたが、アラビア語のデータは正常に機能していましたが、変更後に問題が発生しました。

Frameset.html:

 <html>

 <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
   <script src="js/jquery.js"></script>

     <script>
      $(document).ready(function(){

$("#topArb").load("Top_arb.jsp");
$("#actionBar").load("ActionBar.jsp");
$("#viewInbox").load("ViewInbox.jsp");
$("#legend").load("Legend.html");
$("#nav").load("Nav.jsp");

  });

   </script>

      </head>

      <body>
      <div id="main-container">

      <div id="topArb">
      </div>
       <div id="left-container">
   <div id="actionBar">
    </div>

     <div id="viewInbox">
  </div>
     <div id="legend">
     </div>
      </div>
      <div id="right-container">
     <div id="nav">
    </div>
   </div>
   </body>
  </HTML>

legend.html:-

     <HTML >
        <HEAD>
          <META http-equiv="Content-Type" content="text/html; charset=utf-8">


      </HEAD>

   <BODY topmargin=0>
<table align="center" style="" width="100%" height="20">
    <tr>
        <td>
            <table>
                <tr>
                    <td><IMG SRC="imgs/newH.gif" WIDTH="16"     HEIGHT="16"
                        BORDER="0" ALT=""></td>
                    <td class="SET">وثيقة عاجلة</td>
                </tr>
                <tr>
                    <td><IMG SRC="imgs/new.gif" WIDTH="16"  HEIGHT="16" BORDER="0"
                        ALT=""></td>
                    <td class="SET">وثيقة عادية</td>
                </tr>
            </table>
        </td>
        <td>
            <table>
                <tr>
                    <td><IMG SRC="imgs/BnewH.gif" WIDTH="16" HEIGHT="16"
                        BORDER="0" ALT=""></td>
                    <td class="SET">وثيقة مؤرشفة عاجلة</td>
                </tr>
                <tr>
                    <td><IMG SRC="imgs/Bnew.gif" WIDTH="16" HEIGHT="16"
                        BORDER="0" ALT=""></td>
                    <td class="SET">وثيقة مؤرشفة عادية</td>
                </tr>
            </table>
        </td>
        <td>
            <table>
                <tr>
                    <td><IMG SRC="imgs/CloseDoc.gif" WIDTH="18" HEIGHT="18"
                        BORDER="0" ALT=""></td>
                    <td class="SET">غير مقروء</td>
                </tr>
                <tr>
                    <td><IMG SRC="imgs/OpenDoc.gif" WIDTH="18" HEIGHT="18"
                        BORDER="0" ALT=""></td>
                    <td class="SET">مقروء</td>
                </tr>
            </table>
        </td>
        <td>
            <table>
                <tr>
                    <td><IMG SRC="imgs/L.gif" WIDTH="18" HEIGHT="18" BORDER="0"
                        ALT=""></td>
                    <td class="SET">رد</td>
                </tr>
                <tr>
                    <td><IMG SRC="imgs/ic_waitingreply.gif" WIDTH="18"
                        HEIGHT="18" BORDER="0" ALT=""></td>
                    <td class="SET">نسخة من الوثيقة</td>
                </tr>
            </table>
        </td>
        <td>

            <table>
                <tr>
                    <td><IMG SRC='images/ic_suspend.gif' WIDTH="18" HEIGHT="18"
                        BORDER="0" ALT=""></td>
                    <td class="SET">الأعمال المؤجلة</td>
                </tr>
                <tr>
                    <td><IMG SRC='imgs/ic_close.gif' WIDTH="18" HEIGHT="18"
                        BORDER="0" ALT=""></td>
                    <td class="SET">الأعمال المغلقة</td>
                </tr>
            </table>
        </td>

        <td><IMG SRC="imgs/Drafts.gif" WIDTH="18" HEIGHT="18" BORDER="0"
            ALT=""></td>
        <td class="SET">مسودة</td>
    </tr>
 </table>
    </BODY>

ここで、私のlegend.html(マーク付き)は、アラビア語のデータではなくジャンクデータに表示されます ここに画像の説明を入力

4

2 に答える 2

1

ドキュメントが AJAX 経由で読み込まれたときにのみ破損する場合は、次のことを試してくださいajaxSetup()

$.ajaxSetup({
  "beforeSend": function (xhr) {
    xhr.overrideMimeType("text/html; charset=UTF-8");
  }
});

$("#legend").load("Legend.html");
于 2013-08-01T11:34:29.680 に答える
0

ファイルをlegend.htmlからlegend.jspに変更するだけで私の問題は解決します

于 2013-08-13T09:29:32.267 に答える