diff --git a/static/css/index.css b/static/css/index.css index fe8d27c..ed4e123 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -278,6 +278,9 @@ width: 402px; height: 64px; z-index: 1; + display: flex; + align-items: center; + justify-content: center; } .content .works .name-box .bj { position: absolute; @@ -287,10 +290,6 @@ z-index: -1; } .content .works .name-box .title { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); height: 49px; } .content .works .name-box .line { diff --git a/static/css/index.less b/static/css/index.less index aac25b0..fbce986 100644 --- a/static/css/index.less +++ b/static/css/index.less @@ -322,6 +322,9 @@ width: 402px; height: 64px; z-index: 1; + display: flex; + align-items: center; + justify-content: center; .bj { position: absolute; @@ -332,10 +335,10 @@ } .title { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); + // position: absolute; + // top: 50%; + // left: 50%; + // transform: translate(-50%, -50%); // width: 208px; height: 49px; }