将外层div改成如下两行格式 <form class="layui-form" action=""><div class="layui-form-item"><div></div><div></div></div></div>