这节课暂时没什么特别不懂的

Original 2018-12-13 23:40:38 144
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>添加明星</title><link rel="stylesheet" type="text/css" href="../课件及源码/MI/l

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>添加明星</title>

<link rel="stylesheet" type="text/css" href="../课件及源码/MI/layui/css/layui.css">

<script type="text/javascript" src="../课件及源码/MI/layui/layui.js" charset="utf-8"></script>

<style>

form{width: 350px; height: 330px; margin: 20px auto auto;}

</style>

</head>

<body>

<form action="">

  <div>

    <label>姓名</label>

    <div>

      <input type="text" name="title" required  lay-verify="required" placeholder="请输入姓名" autocomplete="off">

    </div>

  </div>

    <div>

    <label>性别</label>

    <div>

      <input type="radio" name="sex" value="男" title="男" checked>

      <input type="radio" name="sex" value="女" title="女">

    </div>

  </div>

  <div>

    <label>职业</label>

    <div>

      <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>

    <label>类别</label>

    <div>

      <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>

    <label>单选框</label>

    <div>

      <input type="radio" name="sex" value="男" title="正常" checked>

      <input type="radio" name="sex" value="女" title="禁用">

    </div>

  </div>

  <div>

    <div>

      <button lay-submit lay-filter="formDemo">立即提交</button>

      <button type="reset" class="layui-btn layui-btn-primary">重置</button>

    </div>

  </div>

</form>

<script>

//Demo

layui.use('form', function(){

  var form = layui.form;

  

});

</script>

</body>

</html>


Correcting teacher:灭绝师太Correction time:2018-12-14 09:34:21
Teacher's summary:慢慢的学习到后面就会越来越轻松的,继续加油!

Release Notes

Popular Entries