From aab5375f3b045ac54d6f2d55434a7f5def731ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 15 Jul 2019 12:46:58 +0800 Subject: [PATCH] b --- .../react/src/modules/login/EducoderLogin.js | 78 ++++++++++--------- .../modules/user/LoginRegisterComponent.js | 4 +- public/react/src/modules/user/common.css | 1 - 3 files changed, 43 insertions(+), 40 deletions(-) diff --git a/public/react/src/modules/login/EducoderLogin.js b/public/react/src/modules/login/EducoderLogin.js index b46435fe7..116a98c6a 100644 --- a/public/react/src/modules/login/EducoderLogin.js +++ b/public/react/src/modules/login/EducoderLogin.js @@ -43,17 +43,26 @@ var imgback = { backgroundImage: `url(${beijintulogontwo})`, } var imgmian ={ - "width": "100%", - "background": `url(${beijintulogontwo})`, - "height": "100%", - "position": "relative", + width: "100%", + background: `url(${beijintulogontwo})`, + position: "relative", + } var newContainer={ - "min-height": "100%", - "background": `url(${beijintulogontwo})`, - "height": "auto !important", - "position": "relative", + background: `url(${beijintulogontwo})`, + backgroundPosition: "center" , + backgroundRepeat: "no-repeat", + backgroundAttachment: "fixed", + backgroundSize: "100% 100%", + height:" 100%", + width:" 100%", + position: "absolute", + top: "0px", + bottom: "0px", + minHeight: "100%", + overflow:"hidden", + } class EducoderLogin extends Component { constructor(props) { @@ -76,7 +85,8 @@ class EducoderLogin extends Component { } }else if(props.match.url === "/register"){ - this.state = { + // showbool: 1, + this.state = { showbool: 1, loginstatus:false, logini:2, @@ -131,24 +141,16 @@ class EducoderLogin extends Component { render() { let {showbool,loginstatus,logini} = this.state; return ( -