前端之家收集整理的这篇文章主要介绍了
bootstrap制作jsp页面(根据值让table显示选中),
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
本文实例为大家分享了bootstrap制作jsp页面的具体代码,告诉大家如何让table显示选中,供大家参考,具体内容如下
<%@include file="/views/resource.jsp"%>
用户配置
<div id="" class="form-group ">
<table class="table " id="tableuser" data-toggle="table">
Box="true">
用户名称 |
登录名称 |
</table>
<div id="internal_engine_right_container"
class="right-container col-xs-8 col-sm-8 col-md-8 col-lg-8 ">
<p class="margin-control config-title" id="add"
style="display: none">
新增配置
<button id="save" type="button" class="btn btn-control">
<i class="fa fa-save"></i><span id="addsave">保存</span>
</button>
</p>
<p class="margin-control config-title" id="message"
style="display: none">
详细信息
<button id="modifyMessage" type="button" class="btn btn-control">
<i class="fa fa-save"></i><span id="modifysave">保存</span>
</button>
</p>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"
id="" name=""><a href="https://www.jb51.cc/tag/yonghuming/" target="_blank" class="keywords">用户名</a>称:</label>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<input type="text" class="form-control" placeholder=""
data-tabindex="1" id="name" name="name">
</div>
</div>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"><a href="https://www.jb51.cc/tag/denglu/" target="_blank" class="keywords">登录</a><a href="https://www.jb51.cc/tag/mingcheng/" target="_blank" class="keywords">名称</a>:</label>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<input type="text" class="form-control" placeholder=""
data-tabindex="1" id="login_name" name="login_name">
</div>
</div>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label">密码:</label>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<input type='password' style='display: none' name='password'>
<input type="password" class="form-control" placeholder=""
data-tabindex="1" id="password" name="password">
</div>
</div>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label">确认密码密码:</label>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<input type='password' style='display: none' name='password'>
<input type='password' class="form-control" placeholder=""
data-tabindex="1" id="passwordagin" name="password">
<!--这里的name没实际作用 -->
</div>
</div>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label">邮箱:</label>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<input type="text" class="form-control" placeholder=""
data-tabindex="1" id="email" name="email">
</div>
</div>
<div
class="row margin-control col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2">
<label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label">授权:</label>
<div id="" class="form-group col-xs-8 col-sm-8 col-md-8 col-lg-8">
<table class="table " id="tableRole" data-toggle="table">
<thead>
<tr>
<th data-field='state' data-check<a href="https://www.jb51.cc/tag/Box/" target="_blank" class="keywords">Box</a>="true"></th>
<th data-field="id" class="hide">ID</th>
<th data-field="name"><a href="https://www.jb51.cc/tag/mingcheng/" target="_blank" class="keywords">名称</a></th>
<th data-field="code">编码</th>
</tr>
</thead>
</table>
</div>
</div>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。
原文链接:https://www.f2er.com/bootstrap/42834.html