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
。