0

環境:

これらのタグの前にある div に中国語/日本語/韓国語の文字がある場合、 HTML リストは<img>タグ内のタグをレンダリングしません。<a>

サンプルコードは次のとおりです。

<LI style="DISPLAY: block" id=participantList_10025_li>
    <DIV id=participantList_10025_div class=tree-node>
        <SPAN id=participantList_10025 class="node-parent node-close" onclick=handleParticipantListClick(event);></SPAN>&nbsp;
        <SPAN class="node-type-image participantListImage"></SPAN>&nbsp;
        <SPAN class=node-name><A id=companyId_10025 href="#">Albinooooo</A><SPAN class=sharing-info>共有:母公司跟部门</SPAN></SPAN>
        <DIV class=options>
            <A id=mlink-supplierMenu_10025-10025 class="hoverText optionMenuLinkInADiv" onmouseover="showmenu(event, elMenuMap['participantList_mlink-supplierMenu_10025-10025'])" onmouseout=delayhidemenu() href="javascript:void(0)">
                <IMG id=img_participantList_10025 class=options border=0 src="http://localhost:8080/app/image/options.gif">
            </A>
        </DIV>
    </DIV>
</LI>

問題 x 通常の動作の印刷画面: ここに画像の説明を入力

ご覧のとおり、画像の右側のバージョンでは、画面に「a」の文字を追加し、img が表示されました。

回避策:

全角文字が原因で発生することに気付いたので、&nbsp;を追加しました。名前が書かれた後、imgアイコンが再び表示されます。

なぜそれが起こるのか、まだ興味があり&nbsp;ます。このスペースが追加されたので、誰かが同様の問題を抱えていて、それをどのように修正したか (考えられる原因) を知りたいと思いました。(また、これは IE ブラウザーでのみ発生します)。

4

0 に答える 0