1
雖然使用ajax HtmlEditorExtender
我遇到了一個奇怪的問題。即width
屬性消失,圖像縮小。
最初我這是用HtmlEditorExtender
相關textbox
有這樣的文字ajax HtmlEditorExtender寬度問題
txtMessage.Text = "<span style=\" padding:10px 0px 10px 0px; width:100%; \"><img src=\"../images/img4layout2.png\" width=\"675px\" height=\"300px\" ></span><span style=\"font-weight: normal;\">Some text here.</span>";
和圖像看起來是這樣的。
當我點擊頁面上的任何dropdown
或任何其它控制的HtmlEditorExtender
變化的源鬼使神差地這樣(沒有width
現在屬性)
<span style=" padding:10px 0px 10px 0px; width:100%; "><img src="../images/img4layout2.png" height="300px"></span><span style="font-weight: normal;">Some text here.</span>
和最後的圖像看起來是這樣的。
我在此頁面上沒有使用任何javascript
。