html - 在表单和占位符分隔符上设置高度

标签 html css

我想在此表单组上设置高度。问题是占位符不能比现在更宽,因此我必须把它调高。现在,占位符文本是水平向外的,我希望占位符文本在垂直线下继续。

这可能吗?

<div class="form-group">
  <label class="sr-only" for="udfordring">Største udfordring</label>
  <input type="text" class="form-control" id="udfordring" name="udfordring" placeholder="This is a long text there cannot be in the normal field" style="height:300px;"/>
</div>

最佳答案

CSS

.navbar .navbar-form 
{
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

HTML

<div class="panel panel-primary shadow">
  <div class="panel-heading">SUBSCRIBE FOR NEWSLETTER OF WHOLE 10</div> <!-- id-2 for the subscribe channel-->
  <div class="panel-body">
    <form>
        <div class="form group">
      <label for="input e-mail">EMAIL</label>
      <input type="email" class="form-control" id="inputEmail" placeholder="email">
    </div>
    <div class="form group">
      <label for="input e-mail">USERNAME</label>
      <input type="email" class="form-control" id="inputEmail" placeholder="username">
    </div>

<br>
      <div class="checkbox">
      <label><input type="checkbox">REMEMBER ME</label>
    </div>
    <button type="submit" class="btn btn-primary">LOGIN</button>
  </form>`enter code here`

</div>
</div>

关于html - 在表单和占位符分隔符上设置高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39034562/

相关文章:

javascript - 我的 Show or Hide DIV on radio input click 有问题

Java:如何使用xulrunner将html转换为postscript?

android - 为什么绝对尺寸在移动浏览器上显示为不同尺寸?

css - 我的导航栏无法水平对齐

php - 如何根据 MediaWiki 中的页面插入不同的样式表?

javascript - HTML 文本输入 * "value";在不同的文本输入中显示

jquery - html5 视频预加载器问题

jquery - 使用 jQuery(长度选项)隐藏 div 不起作用

html - 尝试将我的图像和列表居中对齐

javascript - 选择覆盖时隐藏图像轮播上一个/下一个箭头