我正在生成HTML
代码使用 jsp
和 html
输出如下所示:-
<input type="text" style="font-weight:bold; background-color: orange; color: blue;" name="req_hallname" class="form-control" title="Conference Hall Requested" value="CIG-VC">
其中value=""
充满了CIG-VC
来自jsp code
.
这个值CIG-VC
当我使用 class="form-control"
时不可见。如果我删除class="form-control"
定义时,输入字段是可见,但格式会被破坏。
这是两种情况的图像
请告知如何克服这个问题。
最佳答案
您可以使用:
<div class="form-group" >
<label class="control-label col-sm-2" for="conference">Conference Hall Requested
:
</label>
<div class="col-sm-8">
<input id="conference" type="text" style="font-weight:bold; background-
color:orange; color: blue;" name="req_hallname" value="CIG-VC"/>
</div>
</div>
关于javascript - jsp <input> 值未通过类 form-control 显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49115267/