src/assets/css/navigation.css
@@ -29,11 +29,24 @@ margin: auto; z-index: 1; } .navigation-contents { /* 使用 flex 布局 */ display: flex; /* 使子元素水平等间隔分布 */ justify-content: center; position: absolute; top: 0px; left: calc(50% - 350px); float: left; width: 700px; margin: auto; z-index: 1; } .navigation-item { float: left; color: #CDF3FD; color: #cdf3fd; cursor: pointer; width: 149px; height: 51px; @@ -60,7 +73,6 @@ .bg4 { background: url("@/assets/img/navigation/buttonbg4.png"); } .bg1:hover { background: url("@/assets/img/navigation/buttonbgac1.png");