2013-02-24 48 views
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>"; 

和圖像看起來是這樣的。 enter image description here

當我點擊頁面上的任何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> 

和最後的圖像看起來是這樣的。 enter image description here

我在此頁面上沒有使用任何javascript

回答