2013-02-24 49 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

回答