我使用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"
定义,输入字段IS值可见,但格式化被破坏。
这是两种情况的图像
请告知如何克服这个问题。
您可以使用:
<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>