/**index.wxss**/ /* 隐藏内容 */ .none { display: none; } .my { width: 100%; padding: 0 15rpx; box-sizing: border-box; } .message, .medal, .ranking { width: 100%; margin: 20rpx 0; border-radius: 25rpx; padding: 32rpx 24rpx; box-sizing: border-box; background: #fff; } .user { display: flex; justify-content: space-between; border-bottom: 2rpx solid #CDCED3; padding-bottom: 20rpx; } .head { display: flex; align-items: center; } .left { display: flex; flex-direction: column; justify-content: center; width: 340rpx; word-break:keep-all;/* 不换行 */ white-space:nowrap;/* 不换行 */ overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/ margin-left: 34rpx; } .userinfo-avatar { width: 86rpx; height: 86rpx; border-radius: 50%; } .name { height:44rpx; font-size: 36rpx; font-weight: 600; } .LV { position: absolute; right:40rpx; top:110rpx; font-size: 28rpx; } .student { height:34rpx; font-size: 28rpx; color: #878787; margin-top: 10rpx; } .grade { width: 146rpx; height: 46rpx; font-size: 28rpx; font-weight: bolder; color: #878787; border: 2rpx solid #CECDD2; border-radius: 30rpx; text-align: center; line-height: 48rpx; } .personal { display: flex; margin-top: 34rpx; } .personal .particulars { flex: 1; display: flex; flex-direction: column; text-align: center; } /*排名*/ .ranking { position: relative; } .ranking .title text{ font-size: 36rpx; font-weight: 600; } .ranking-con { margin-bottom: 70rpx; } .rank { display: flex; justify-content: space-between; font-size: 28rpx; margin-top: 30rpx; } .particular { position: absolute; right: 30rpx; bottom: 30rpx; color: #5984F7; font-size: 28rpx; } /*勋章*/ .medal { padding: 28rpx; } .medal .title { display: flex; justify-content: space-between; align-items: center; } .medal .title text:nth-child(1){ font-size: 36rpx; font-weight: 600; } .medal .title text:nth-child(2){ font-size: 28rpx; color: #878787; } .img { display: flex; padding-top: 38rpx; } .img view { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-right: 15rpx; } .img image { width: 140rpx; height: 140rpx; } .img text { font-size: 28rpx; color: #878787; margin-top: 10rpx; } .personal .particulars text:nth-child(1) { font-size: 24rpx; color: #878787; } .personal .particulars text:nth-child(2) { font-size: 28rpx; color: #000; font-weight: 600; } .questions, .share { width: 100%; margin-top: 40rpx; } .questions text, .share text { width: 100%; display: inline-block; border: 1px solid #ccc; background: #fff; } .questions view, .share view { height: 1400rpx; margin-top: 20rpx; background: red; } .adsorb { position: fixed; left: 0; top: 84rpx; }