bootstrap制作jsp页面(根据值让table显示选中)

前端之家收集整理的这篇文章主要介绍了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&gt;

<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"&gt;
 新增配置
 <button id="save" type="button" class="btn btn-control"&gt;
  <i class="fa fa-save"&gt;</i><span id="addsave"&gt;保存</span>
 </button>
</p>
<p class="margin-control config-title" id="message"
 style="display: none"&gt;
 详细信息
 <button id="modifyMessage" type="button" class="btn btn-control"&gt;
  <i class="fa fa-save"&gt;</i><span id="modifysave"&gt;保存</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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"
  id="" name=""&gt;<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"&gt;
  <input type="text" class="form-control" placeholder=""
   data-tabindex="1" id="name" name="name"&gt;
 </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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"&gt;<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"&gt;
  <input type="text" class="form-control" placeholder=""
   data-tabindex="1" id="login_name" name="login_name"&gt;
 </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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"&gt;密码:</label>

 <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"&gt;
  <input type='password' style='display: none' name='password'>
  <input type="password" class="form-control" placeholder=""
   data-tabindex="1" id="password" name="password"&gt;
 </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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"&gt;确认密码密码:</label>
 <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"&gt;
  <input type='password' style='display: none' name='password'>
  <input type='password' class="form-control" placeholder=""
   data-tabindex="1" id="passwordagin" name="password"&gt;
  <!--这里的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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"&gt;邮箱:</label>
 <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"&gt;
  <input type="text" class="form-control" placeholder=""
   data-tabindex="1" id="email" name="email"&gt;
 </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"&gt;
 <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label"&gt;授权:</label>
 <div id="" class="form-group col-xs-8 col-sm-8 col-md-8 col-lg-8"&gt;
  <table class="table " id="tableRole" data-toggle="table"&gt;
   <thead>
    <tr&gt;
     <th data-field='state' data-check<a href="https://www.jb51.cc/tag/Box/" target="_blank" class="keywords">Box</a>="true"&gt;</th>
     <th data-field="id" class="hide"&gt;ID</th>
     <th data-field="name"&gt;<a href="https://www.jb51.cc/tag/mingcheng/" target="_blank" class="keywords">名称</a></th>
     <th data-field="code"&gt;编码</th>
    </tr&gt;
   </thead>

  </table&gt;
 </div>
</div>

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。

原文链接:https://www.f2er.com/bootstrap/42834.html
bootstrapbootstrapjspjsptabletabletabletable

猜你在找的Bootstrap相关文章