简体   繁体   English

如何使用引导程序增加asp.net webform中的TextArea长度

[英]How to increase the TextArea length in asp.net webform using bootstrap

I have a code like this in my aspx page:我的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>

But the text area does not seem to change even if I give or .I want to increase the textbox to occupy 3/4th of my page.但是即使我给或文本区域似乎也没有改变。我想增加文本框以占据我页面的 3/4。 Right now, it is only 1/4th.现在,它只有 1/4。 I even did the below change in my Site.css but it doesnt seem to change.我什至在我的 Site.css 中做了以下更改,但它似乎没有改变。

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

You can easily achieve by setting cols and rows as attributes instead of using bootstrap您可以通过将 cols 和 rows 设置为属性而不是使用引导程序轻松实现

Try this:尝试这个:

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

I am attaching the screenshot for your reference:我附上截图供您参考:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM