CSS模块剧中方法
display:flex响应式剧中(一般登录、注册页面剧中)
.register { display: flex; /*需要单性布局 */ height: 100%; flex-direction: column; background-color: #e0e4e8; align-items: center; /*元素左右剧中 */ justify-content: center; /*元素上下剧中 */ } /* 剧中模块 */ .content { width: 25%; height: 60%; min-height: 500px; min-width: 370px; background-color: brown; }