.top-nav{ width: 100%; height: 80rpx; display: flex; justify-content: start; } .scroll-wrapper { white-space: nowrap; -webkit-overflow-scrolling: touch; background: #FFF; padding-left: 20rpx; width: 90%; height: 85rpx; box-sizing: border-box; } ::-webkit-scrollbar { width: 0; height: 0; color: transparent; } .navigate-item { display: inline-block; text-align: center; height: 90rpx; line-height: 90rpx; margin-right: 80rpx; } .names { font-size: 28rpx; color: #3c3c3c; } .names.active { color: #ff520f; font-weight: bold; font-size: 34rpx; } .currtline { margin: -8rpx auto 0 auto; width: 100rpx; height: 1rpx; border-radius: 4rpx; } .currtline.active { background: #ff520f; transition: all .3s; } .pull-down{ width: 10%; height: 25rpx; padding: 30rpx 0rpx; background-color: rgb(249, 249, 249); text-align: center; color: #ff520f; line-height: 30rpx } /* 内容区的代码 */ .content { width: 100%; display: flex; justify-content: space-around; margin-top: 10rpx; padding-top: 30rpx; } .indexNumber { width: 15%; height: auto; padding: 20rpx 20rpx; text-align: center; font-size: 50rpx; color: #ff520f; } .content image { width: 140rpx; height: 140rpx; margin-top: 10rpx; } .content-left { padding: 10rpx 0rpx; margin-left: 30rpx; width: 60%; height: auto; border-bottom: 1rpx solid #ccc; } .content-title{ font-size: 35rpx; height: 40rpx; color: #000; display: -webkit-box; -webkit-line-clamp: 2;/*行数n*/ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .content-text{ height: 40rpx; display: -webkit-box; -webkit-line-clamp: 1;/*行数n*/ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-size: 27rpx; text-align: left; color: #ccc; margin-top: 15rpx; } .count{ font-size: 27rpx; color: #ccc; display: flex; justify-content: start; margin-top: 15rpx; } .menu{ width: 100%; height: 200rpx; position: fixed; top: 0rpx; z-index: 9999; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; background: #fff; } .menuItem{ color: #000; width: auto; font-size: 32rpx; padding: 20rpx 10rpx; margin: 0rpx 15rpx; position: relative; } .menuItemactive { font-size: 32rpx; font-weight: 700; transition: all .3s; color: #333333; } .menuItemactive:after{ content: ''; width: 40rpx; height: 8rpx; position: absolute; bottom: 0rpx; left: 50rpx; border-radius: 15rpx; background: #ff520f; }