/* 返回 */ .nav { background-color: #101010; z-index: 3; position: fixed; top: 0; left: 0; width: 100%; /* height: 10%; */ height: .88rem; display: flex; } .back{ position: absolute; left: 0; top: 0; z-index: 3; width: 10%; height: .88rem; display: flex; justify-content: center; align-items: center; } .back img { width: .18rem; } /* 页面标题 */ .pageTitle { height: .88rem; width: 100%; display: flex; justify-content: center; align-items: center; } .pageTitle img { width: 1.6rem; height: .8rem; } /* 主要展示区 */ .main { padding: 1rem .26rem; } /* 视频 */ .video { display: grid; text-align: center; /* // 设置网格布局 */ grid-template-columns: 1fr 1fr; /* // 列的比例分布,分成三例,每列占比总宽度的1/3 */ grid-gap: .2rem; /* // 各网格间距为10px */ padding-bottom: .12rem; padding-top: .3rem; } /* 单条视频 */ .videoContent { background-color: #1C1A1B; background-color: #1C1A1B; width: 3.4rem; min-height: 3.64rem; border-radius: 5px; } .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; } .loadingImg { width: 80px; height: 76px; } .loadingText { text-align: center; margin-top: 4px; color: #8E8D8D; font-size: 12px; } .videoPhoto { width: 3.4rem; height: 2.4rem; background-repeat: no-repeat; background-position: 50% 50%; background-size: cover; border-top-left-radius:0.12rem; border-top-right-radius:0.12rem; } .videoImg { width:100%; height:100%; } .videoTitle { height: .9rem; text-align: left; font-size: .28rem; margin: .2rem .3rem 0 .3rem; /* 两行展示 */ overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; } .videoColumn { display: flex; justify-content: space-between; align-items: center; } .videoData { width: 2.8rem; display: flex; justify-content: space-between; align-items: center; margin: .1rem .3rem .2rem .3rem; } .close { width: .34rem; height: .34rem; } .closeImg { width: 100%; height: 100%; } .videoDataLeft { display: flex; align-items: center; margin-right: .1rem; } .videoDataImgLook { width:.3rem; height: .2rem; } .videoDataImgZan { width:.28rem; height: .3rem; } .videoText { margin-left: .1rem; font-size: .24rem; } .videoDataRgiht { display: flex; /* align-items: center; */ } .backToTop { position: fixed; bottom: 1.3rem; right: .3rem; width: .68rem; height: .68rem; display: none; } .backToTopImg { width: 100%; height: 100%; opacity: .5; } .tip { width: 6rem; height: 1rem; color: #fff; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); display: none; } .textwrap { display: flex; justify-content: center; align-items: center; } .tiptext { background-color: #000; border-radius: .1rem; text-align: center; padding: .1rem .2rem; }