其他分享
首页 > 其他分享> > 背景图片加表单居中

背景图片加表单居中

作者:互联网

body {
	width: 100%;
	height: 100vh;
	background: url('./img/bg.jpg') no-repeat;
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
	display: flex;
}

.layui-form {
	margin: auto;
	width: 360px;
	background-color: rgba(255, 255, 255, 0.8);
	padding: 40px;
}

标签:居中,0.8,center,color,表单,width,background,背景图片,255
来源: https://www.cnblogs.com/sunr/p/16671597.html