Text area issue

Peter_1985 2,736 Reputation points
2023-10-03T06:28:13.05+00:00
The text area is not shown well, using the codes below. What to adjust?
   
        <asp:Label ID="Label4"
            Text="..."
            Width="150px"
            Font-Names="標楷體"
            Font-Size="14pt"
            Font-Bold="true"
            ForeColor="Black"
            runat="server" />
        <script type="text/javascript" src="<%= ResolveUrl("~/content/javascript/ckeditor/ckeditor.js") %>"></script>
        <script type="text/javascript" src="<%= ResolveUrl("~/content/javascript/ckeditor/adapters/jquery.js") %>"></script>

        <div id="dvDesc">
            <asp:Repeater ID="rptDesc" runat="server">
                <ItemTemplate>
                    <table class="tblDesc" cellpadding="2" cellspacing="0" border="1">
                        <tr>
                            <td>
                                <b>
                                    <u>
                                        <span class="cDesc"><%# Eval("cDesc") %></span>
                                    </u>
                                </b>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div>
            <ul id="CommentList">
                <li>评论 1: <textarea id="Comment1" name="MyEA" runat="server"></textarea></li>
            </ul>
        </div>
Developer technologies ASP.NET Other
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2023-10-03T07:21:16.8133333+00:00

    Hi @Peter_1985,

    The text area is not shown well, using the codes below. What to adjust?

    I tested your code and I think you can adjust it to look like below.

          <div>
             <ul id="CommentList" style="  list-style-position: inside;
    padding-left: 0;">
                 <li >评论 1:<br /><textarea id="Comment1" name="MyEA" runat="server" placeholder="Enter your Comment here ..."
            style="width: 250px;height: 100px;"></textarea></li>
              </ul>
          </div>
    

    User's image

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.