【问题标题】:How to increase the TextArea length in asp.net webform using bootstrap如何使用引导程序增加 asp.net webform 中的 TextArea 长度
【发布时间】:2020-12-14 06:17:57
【问题描述】:

我的 aspx 页面中有这样的代码:

<div class="container">

        <h3 class="my-5 h2">Tasks List</h3>


        <div class="form-group w-75">
                <label for="lastmonth">Enter Tasks:</label>
                <textarea class="form-control" id="lastmonth" rows="7"></textarea>
          </div>

    </div>

但是即使我给或,文本区域似乎也没有改变。我想增加文本框以占据我页面的 3/4。现在,它只有1/4。我什至在我的 Site.css 中进行了以下更改,但它似乎没有改变。

input,
select,
textarea {
    max-width: 100%;
}

【问题讨论】:

    标签: c# html asp.net twitter-bootstrap-3 web-applications


    【解决方案1】:

    您可以通过将 cols 和 rows 设置为属性而不是使用 bootstrap 来轻松实现

    试试这个:

    <textarea class="form-control" id="lastmonth" cols="30" rows="10"></textarea>
    

    我附上截图供你参考:

    【讨论】:

      猜你喜欢
      • 2013-05-31
      • 2016-10-17
      • 2016-11-11
      • 2013-07-01
      • 1970-01-01
      • 2018-09-18
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      相关资源
      最近更新 更多