作者:HoerenRegen | 来源:互联网 | 2023-09-10 11:07
上边的导航头,会显示在登陆页面上,暂时的解决办法实:<template><divstyle"position:fixed;top:0px;left:0px;height:100%;width:100%;background-color:#1F2D3D;z-index:100&
上边的导航头,会显示在登陆页面上,暂时的解决办法实:
<template>
<div style="position: fixed; top:0px; left:0px;height:100%;width: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="width:100%;">
<el-button type="primary" style="width:100%;" @click.native.prevent="handleSubmit2">登录el-button>
el-form-item>
el-form>
div>
template>
就是图中的style 样式。