vue element-ui登录页面源码
生活随笔
收集整理的這篇文章主要介紹了
vue element-ui登录页面源码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
HTML
JS
new Vue({el: "#bodylogin",data: {labelPosition: 'center',form: {username: '',password: '',}},methods: {/* 登錄發送請求 */onsubmit() {console.log("登錄" + this.form.username);console.log("密碼" + this.form.password);},regist(){ console.log("ddd")window.location.href = "/login/regist.html";}} });CSS
.login {/* 背景圖片 */background-image: url(../static/新建文件夾/17.png);background-size: 100% 100%;/* background-color: powderblue; */margin-top: 10rem;border-radius: 12px;/* 內邊距 */padding: 20px;text-align: center;box-shadow: 0 8px 5px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); }/* 登錄文字 */ .denglu {color: white;font-size: 20px; }/* 背景圖片 */ body {background-image: url(../static/新建文件夾/8.png);background-size: 100% 100%;background-attachment: fixed; } .label-position{background-color: #000000; }在這里插入圖片描述
需要引入vue js element-ui 如果沒有的,可以從我靜態資源下載,這里放不下
總結
以上是生活随笔為你收集整理的vue element-ui登录页面源码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2021年中信银行存款利率表一览表?20
- 下一篇: html5倒计时秒杀怎么做,vue 设