上边的导航头,会显示在登陆页面上,暂时的解决办法实:
<template> <div style="position: fixed; top:0px; left:0px;height:100%;100%; background-color: #1F2D3D; z-index:100"> <el-form :model="ruleForm2" :rules="rules2" ref="ruleForm2" label-position="left" label-width="0px" class="demo-ruleForm card-box loginform"> <h3 class="title">系统登录</h3> <el-form-item prop="username"> <el-input type="text" v-model="ruleForm2.username" auto-complete="off" placeholder="账号"></el-input> </el-form-item> <el-form-item prop="pwd"> <el-input type="password" v-model="ruleForm2.pwd" auto-complete="off" placeholder="密码"></el-input> </el-form-item> <el-checkbox v-model="checked" checked style="margin:0px 0px 35px 0px;">记住密码</el-checkbox> <el-form-item style="100%;"> <el-button type="primary" style="100%;" @click.native.prevent="handleSubmit2">登录</el-button> <!--<el-button @click.native.prevent="handleReset2">重置</el-button>--> </el-form-item> </el-form> </div> </template>
就是图中的style 样式。