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> @@ -60,4 +63,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>