/* 顶部要固定定位 标题要居中 自定义按钮和标题要和右边微信原生的胶囊上下对齐 */ .nav-wrap { position: fixed; width: 100vw; top: 0; z-index: 300; } .style1{ top: 50%!important; transform:translateY(-50%)!important; } .style2{display:block;white-space:nowrap;text-overflow:ellipsis;overflow: hidden;} .nav-bottom{ position: fixed; width: 100%; height: 5px; color: #000; z-index: 300; } /* 标题要居中 */ .nav-title { position: absolute; text-align: center; max-width: 400rem; /* overflow: hidden; */ text-overflow: ellipsis; white-space: nowrap; top: 0; left: 0; right: 0; bottom: 0; margin: auto; color: #fff; font-size: 32rem; font-weight: bold; } .nav-capsule { position: absolute; display: flex; align-items: center; /*margin-left: 30rem;*/ width: 180rem; justify-content: space-between; height: 100%; z-index: 4; } .nav-buildStyle { display: flex; align-items: center; justify-content: space-between; height: 100%; background-color: initial!important; } .nav-buildCityStyle { display: flex; align-items: center; justify-content: space-between; height: 100%; /*background-color: #2ab4ff;*/ } .back-pre { width: 24rem; height: 24rem; border-top: 4rem solid #fff; border-left: 4rem solid #fff; transform: rotate(-45deg); margin-left: 30rem; } .nav-padding { width: 100%; background-color: #000; position: relative; } .icon_xiala{ width: 16rem; height: 10rem; position: absolute; right: 0px; top: 50%; transform:translateY(-50%); } .icon-gengduo1{ transform: rotate(90deg); font-size: 20rem; color: #fff; display: inline-block; } .icon-weizhibai1{ font-size: 26rem; } .noticeBtnContainer{ position: absolute; left: 70rem; } .noticeBtn{ width: 140rem; height:60rem; background:rgba(255,255,255,0.3); border-radius:30rem; } .justContentCenter{ display:flex; justify-content:center; align-items:center; align-content: center; } .adver-name{ font-weight: 400; font-size: 30rem; text-align: center; color: #212121; } .adver-head{ font-size: 0rem; margin-right: 20rem; position: relative; } .head-img{ width: 50rem; height: 50rem; border-radius: 50%; } .adver-online{ position: absolute; width: 32rem; height: 32rem; right: -5rem; bottom: -2rem; box-sizing: border-box; background: #75cf4a; border: 4rem solid #fff; border-radius: 50%; } .adver-tag{ width: 120rem; height: 36rem; border-radius: 18rem; background: #3e87f7; font-weight: 600; font-size: 22rem; color: #fff; box-sizing: border-box; margin-left: 20rem; justify-content: center; } .adver-status{ font-weight: 400; font-size: 28rem; letter-spacing: 0.08rem; text-align: left; color: rgba(0, 0, 0, 0.3); line-height: 28rem; } /* 朋友页面头部样式 */ .friend-tab{ width: 750rem; height: 100%; text-align: center; border-bottom: 1rem solid #ededed; box-sizing: border-box; } .tab-area{ display: flex; align-items: center; justify-content: space-between; background: transparent; width: 300rem; height: 100%; margin: auto; } .tab-item{ position: relative; font-family: "Verdana"; font-size: 30rem; color: rgba(22, 23, 34,0.5); height: 100%; display: flex; align-items: center; } .tabActive{ font-weight: bold; font-size: 15px; text-align: left; color: #161722; } .tabActive:after{ position: absolute; bottom: 0; content: ' '; width: 100%; height: 4rem; background-color: #161722; left: 0; }