src/views/home/component/myHeader.vue
@@ -24,6 +24,9 @@ </div> </div> </div> <div class="banner"> <!-- <img width="100%" height="306px" src="@/assets/home/banner.png" alt="" /> --> </div> </template> <style lang="scss" scoped> @@ -33,6 +36,7 @@ justify-content: space-evenly; height: 80px; width: 100%; background-color: white; .middle { width: 50%; display: flex; @@ -60,4 +64,13 @@ } } } .banner { // left: -3.76px; // top: 80px; // position: absolute; background: url("@/assets/home/banner.png") no-repeat left center; background-size: cover; width: 100%; height: 306px; } </style>