/* components/image-botton/index.wxss */ .image-button { width: 100%; height: 50px; position: relative; display: flex; justify-content: center; align-items: center; color: white; font-size: 15px; } .image-btn-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } .image-button-small{ width: 100%; height: 40px; position: relative; display: flex; justify-content: center; align-items: center; color: white; font-size: 15px; }