Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

狀況

當您輸入的文字包含在 Internet Explorer 11 或 Microsoft 邊緣 < br > 標記 contentEditable div 時,< br > 標記會意外地刪除。這個問題發生在 contentEditable div 該以 < br > 標記分隔的主機內容。

例如,假設您選取 [在下列範例中 HTML Line2,然後再鍵入 [ asdf:

<div contenteditable="true">        <span>
Line1
<br>
Line2
<br>
Line3
<br>
Line4
</span>
</div>

在此情況下,不只是 Line2 刪除,但下列的 < br > 標記。因此,Line3 結合,您輸入的文字 ("asdf") 中 Line2,如下所示︰

<div contenteditable="true">        <span>
Line1
<br>
asdfLine3
<br>
Line4
</span>
</div>

注意如果下列條件其中一項成立,就會發生這個問題︰

  • 您按下 Shift + End 鍵選取您要在其中輸入文字的行。

  • 您可以使用滑鼠指標,按一下之前 < br > 標記,以選取輸入文字的位置。

原因

選取追蹤器 」 服務會調整選取範圍在插入文字時,就會發生這個問題。服務呼叫CSelectTracker::AdjustForCaretRequirements的常式,並且這會將結束標記的指標,使它包含後端分行符號標籤。如此一來,便會依次刪除自動換行。

解決方案

若要修正這個問題,請安裝最新的 Internet Explorer 累積安全性更新。若要執行這項操作,請前往 Microsoft Update。此外,請參閱技術資訊,瞭解有關 Internet Explorer 最新的累積安全性更新

注意第一次納入此更新程式MS16 063: Internet Explorer 的安全性更新︰ 2016 年 6 月 14,

狀態

Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。

參考

深入了解 Microsoft 用來描述軟體更新的術語

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×