/* components/topNavtar.wxss */ .head{ position: fixed; z-index:999; width: 100%; height: 30px; line-height: 30px; /* background: linear-gradient(to bottom, #D9E7FF, #e0eafa,#F6F6F6 ); */ top: 0; left: 0; }