【问题标题】:Textarea width in horizontal form水平形式的文本区域宽度
【发布时间】:2014-01-23 13:09:41
【问题描述】:

我已经尝试了几个小时,包括提供的 Bootstrap .css 文件以使我的文本区域更宽。

我会在其中的一些中包含很多文本,而且它们太小了,我无法正确使用它们。

请看我制作的截图:

这是我的代码:

<form class="form-horizontal" role="tld_edit" method="post" action="">
   <div class="form-group">
    <label for="PrimaryInternalNote" class="col-sm-2 control-label">
      <strong><?php echo SYSTEM::Com(389); ?></strong>
    </label>
    <div class="col-sm-10">
     <textarea class="form-control" rows="3" 
       placeholder="<?php echo SYSTEM::Com(395); ?>" 
       id="PrimaryInternalNote" name="PrimaryInternalNote">
     <?php echo $row['PrimaryInternalNote']; ?>
     </textarea>
    </div>
 </div>    
</form>

这是我用于此表单中每个输入的内容。我想让它宽 2-3 倍,最大宽度为

<div class="container">

所有数据都放入其中。

关于如何做到这一点的任何想法?

【问题讨论】:

  • class 重命名为 textarea 并赋予其宽度和高度,如 .custom-textarea { width: 600px; max-width: 700px; min-height: 200px; }

标签: php html css twitter-bootstrap textarea


【解决方案1】:

使用这个:

<textarea cols="40" rows="10"></textarea>
         //missing

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-12
    • 1970-01-01
    • 2015-10-08
    • 1970-01-01
    • 2014-09-19
    • 2014-09-19
    • 2019-07-27
    相关资源
    最近更新 更多