zoukankan      html  css  js  c++  java
  • uniapp简单的登录页面布局

    <template>
    	<view class="login">
    		<view class="content-wrapper">
    			<view class="title">
    				<h1>欢迎使用考试系统</h1>
    			</view>
    			<view class="login-form">
    				<view class="login-form-items">
    					<view class="login-form-items-title">手机号</view>
    					<input type="text" class="login-input" placeholder="手机号" />
    				</view>
    
    				<view class="login-form-items">
    					<view class="login-form-items-title">登录密码</view>
    					<input type="password" class="login-input" placeholder="请输入登录密码" />
    				</view>
    
    				<view class="login-form-items">
    					<view class="login-form-items-title">验证码</view>
    					<input type="text" class="login-input" placeholder="请输入验证码" />
    					<view class="captcha-wrapper">
    						<img src="../../static/captcha.jpg"></img>
    					</view>
    				</view>
    			</view>
    		</view>
    		<div class="submit-wrapper">
    			<button type="primary" class="login-btn">登录</button>
    		</div>
    	</view>
    </template>
    
    <script>
    	export default {
    		data() {
    			return {
    
    			};
    		}
    	}
    </script>
    
    <style lang="scss">
    	page {
    		background: #F4F5F6;
    	}
    
    	.login {
    		.content-wrapper {
    			 100%;
    
    			.title {
    				margin-top: 35rpx;
    				 100%;
    				margin-bottom: 10px;
    
    				h1 {
    					border: 0px;
    					 50%;
    					margin: 0 auto;
    					text-align: center;
    					border-bottom: 1px solid #E3E3E3;
    					height: 50px;
    					line-height: 50px;
    					font-size: 17px;
    					overflow: hidden;
    					font-weight: 400;
    				}
    			}
    
    			.login-form {
    				margin: 20px 10px 20px 15px;
    				background: #FFFFFF;
    
    				.login-form-items {
    					padding: 15px 10px;
    					border-bottom: 1px solid #F3F4F5;
    					position: relative;
    					display: -webkit-flex;
    					display: flex;
    
    					.login-form-items-title {
    						 30%;
    						line-height: 22px;
    						height: 22px;
    						flex-shrink: 0;
    					}
    
    					.login-input {
    						 100%
    					}
    
    					img {
    						 auto;
    						height: auto;
    						max- 100%;
    						max-height: 100%;
    					}
    				}
    			}
    		}
    
    		.submit-wrapper {
    			padding: 10px;
    			padding-top: 10px;
    		}
    
    	}
    </style>
    
    
  • 相关阅读:
    spring各个版本开发包下载
    not value specified for parameter问题解决方案
    Ajax的重构
    Ajax中与服务器的通信【发送请求与处理响应】
    Ajax技术之XMLHttpRequest(二)【XMLHttpRequest常用方法和属性】
    “AI”项目日记
    英语学习笔记
    贺费德勒20冠,和关于程序员中年危机的思考
    《领域驱动设计:软件核心复杂性应对之道》读书笔记
    ERP系统知识笔记
  • 原文地址:https://www.cnblogs.com/AlexanderZhao/p/14253803.html
Copyright © 2011-2022 走看看