如何在HtmlEditorExtender的“左侧”和“顶部”定位?

时间:2019-05-09 20:24:33

标签: html asp.net ajax

如何将HtmlEditorExtender的“左侧”和“顶部”定位?

我尝试将HtmlEditorExtender1放在面板,div下以及TargetControlID文本框的设置样式下。

<asp:TextBox ID="txtRequest" onfocus="javascript:this.style.backgroundColor='#FFFFC0';" onkeypress="this.style.backgroundColor='#FFFFC0';" runat="server" AcceptsReturn="True" BorderColor="#EC0764" BorderStyle="Solid"  BorderWidth="1px" height = "138px" left = "19px" top="245px" Style="padding: 3px; z-index: 0; left: 19px; position: absolute; top: 245px; overflow: auto; margin: 0px; height: 138px; width: 695px; text-align: left;" Font-Names="Tahoma,Arial" Font-Size="10pt" ForeColor="Black" TabIndex="1" BackColor="#F0F0F0" ></asp:TextBox>
             <cc1:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID ="txtRequest" >
            <Toolbar>
                <cc1:Undo />
                <cc1:Redo />
                <cc1:Bold />
                <cc1:Italic />
                <cc1:Underline />
                <cc1:StrikeThrough />
                <cc1:Subscript />
                <cc1:Superscript />
                <cc1:JustifyLeft />
                <cc1:JustifyCenter />
                <cc1:JustifyRight />
                <cc1:JustifyFull />
                <cc1:InsertOrderedList />
                <cc1:InsertUnorderedList />
                <cc1:Undo />
                <cc1:SelectAll />
                <cc1:UnSelect />
                <cc1:Delete />
                <cc1:Cut />
                <cc1:Copy />
                <cc1:Paste />
                <cc1:ForeColorSelector />
                <cc1:InsertHorizontalRule />
            </Toolbar>
         </cc1:HtmlEditorExtender>

我想将htmleditorextender放置在我的文本框相同的位置。相反,它继续走到左上方,然后坐在那里。

0 个答案:

没有答案