【问题标题】:Increase textbox height in Spring Form在 Spring Form 中增加文本框高度
【发布时间】:2016-05-02 22:53:01
【问题描述】:

我有一个带有文本框的 spring-mvc 表单:我想增加文本框的高度。我尝试在 css 中添加“height”和“line-height”属性,但我的文本框高度根本没有改变。
表格:

<div class="plLabelSearch">Code:</div> 
<div class="plinput"><form:input path="codeKey" type="text" size="29"/></div>

css 属性:

.plLabelSearch{display:inline-block;width:190px;text-align:right;margin-bottom:10px;}
.plinput{display:inline-block;width:150px;}

【问题讨论】:

    标签: html css spring-form


    【解决方案1】:

    您没有正确定位&lt;input&gt;,请参阅小提琴:https://jsfiddle.net/c259LrpL/15/

    .plinput &gt; input{height: 50px;}

    【讨论】:

    猜你喜欢
    • 2011-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-28
    • 1970-01-01
    • 2014-12-14
    • 2011-11-18
    • 1970-01-01
    相关资源
    最近更新 更多