suchen

Heim  >  Fragen und Antworten  >  Hauptteil

Warum wird das CSS-Zeichenfeld mit demselben Code nicht richtig angezeigt?

<!DOCTYPE html>

<html>

<head>

<title></title>

<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 style="padding: 10px;">

<div class="layui-form-item">

<label class="layui-form-label">用户名</label>

<div class="layui-input-inline">

<input type="text" class="layui-input">

</div>

</div>


<div class="layui-form-item">

<label class="layui-form-label">角    色</label>

<div class="layui-input-inline">

<select name="gid">

<option></option>

</ select>

</div>

</div>


<div class="layui-form-item">

<label class="layui-form-label"> ;密    码</label>

<div class="layui-input-inline">

<input type="text" class="layui-input"> ;

</div>

</div>


<div class="layui-form-item">

<label class="layui-form-label">姓    名</label>

<div class="layui-input-inline">

<input type="text" class="layui-input">

</div>

</div>


<div class="layui-form-item">

<label class="layui-form-label">状    态</label>

<div class="layui-input-inline">

<input type="checkbox"lay-skin="primary">

</div>

</div>

<script type="text/javascript">

layui.use(['layer','form'],function(){

form =layui.form;

layer=layui.layer;

});

</script>

</body>

</html>


phpcn_u211985phpcn_u2119852324 Tage vor1535

Antworte allen(5)Ich werde antworten

  • 繁华

    繁华2018-07-25 08:26:27

    你要在最外面写个form

    <form class="layui-form"> 

    <!--这里写你的代码-->

    </form>

    Antwort
    0
  • 不愿将就

    不愿将就2018-07-24 09:50:31

    你要把值写在option里面

    Antwort
    0
  • phpcn_u211985

    phpcn_u2119852018-07-23 23:45:34

    就是这样20180723233820.png

    Antwort
    0
  • phpcn_u211985

    就是这样,不能正常显示

    phpcn_u211985 · 2018-07-23 23:47:06
    小白

    option里面内容

    小白 · 2018-07-25 11:34:32
  • StornierenAntwort