添加修改编辑框

Original 2018-12-27 23:40:09 310
abstract:<!DOCTYPE html> <html> <head>  <title>添加修改编辑</title>  <meta charset="utf-8">  <link rel="stylesheet" type=
<!DOCTYPE html>
<html>
<head>
 <title>添加修改编辑</title>
 <meta charset="utf-8">
 <link rel="stylesheet" type="text/css" href="static/plugins/layui/css/layui.css">
 <script type="text/javascript" src="static/plugins/layui/layui.js"></script>
</head>
<body>
<form class="layui-form" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">用户ID</label>
    <div class="layui-input-inline">
      <input type="password" name="password" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-inline">
      <input type="password" name="password" class="layui-input">
    </div>
  </div>
   <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-inline">
      <input type="password" name="password" class="layui-input">
    </div>
  </div>
 <div class="layui-form-item">
    <label class="layui-form-label">所在省份</label>
    <div class="layui-input-inline">
      <select name="city" lay-verify="required">
        <option value=""></option>
        <option value="0">北京</option>
        <option value="1">上海</option>
        <option value="2">广州</option>
        <option value="3">深圳</option>
        <option value="4">杭州</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label">状态</label>
  <div class="layui-input-block">
    <input type="checkbox" name="" title="禁用" lay-skin="primary">
  </div>
</div>
<button class="layui-btn">保存</button>
</form>
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
});
</script>
</body>
</html>


Correcting teacher:灭绝师太Correction time:2018-12-28 09:38:01
Teacher's summary:layui上手比较简单,调用对应组件就可以了,要学会看文档基本问题不大

Release Notes

Popular Entries