//引入全局配置 @import "c/conf"; @import "c/mx"; @import "c/f"; @import "a/c"; @import "global"; page { // background-color: #fff; } .g-scroll_page { position: relative; box-sizing: border-box; height: 100%; } .m-list { min-height: 100rpx; .item { position: relative; box-sizing: border-box; margin: 20rpx auto; padding: 20rpx; width: 710rpx; background: rgba(255, 255, 255, 1); box-shadow: 0rpx 3rpx 24rpx 0rpx rgba(211, 211, 211, 0.26); border-radius: 10rpx; .arrow { position: absolute; display: block; top: 15rpx; right: 10rpx; width: 13rpx; height: 24rpx; } .topic-top { display: flex; align-items: center; .topic-state { width: 80rpx; height: 32rpx; margin-right: 8rpx; font-size: 20rpx; font-family: Source Han Serif SC; font-weight: 500; color: #FFFFFF; text-align: center; line-height: 32rpx; background: #FFC100; border-radius: 10rpx; -webkit-border-radius: 10rpx; -moz-border-radius: 10rpx; -ms-border-radius: 10rpx; -o-border-radius: 10rpx; } .topic-state-color { background: #E60000; } } .grid-name { font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: #999999; line-height: 36rpx; } .topic-content{ margin-top:19rpx; font-size: 34rpx; font-family: Source Han Serif SC; font-weight: 500; color: #333333; line-height: 50rpx; overflow: hidden;//超出隐藏 text-overflow: ellipsis;//超出文本设置为... display:-webkit-box;//将div1转换为盒子模型 -webkit-line-clamp: 2;//设置div1的文本为2行 -webkit-box-orient: vertical;//从顶部向底部垂直布置子元素 } .issue-title{ margin-top:19rpx; font-size: 34rpx; font-family: Source Han Serif SC; font-weight: bold; color: #333333; line-height: 48rpx; } .suggestion{ margin-top:19rpx; font-size: 28rpx; font-family: Source Han Serif SC; font-weight: 500; color: #333333; line-height: 40rpx; overflow: hidden;//超出隐藏 text-overflow: ellipsis;//超出文本设置为... display:-webkit-box;//将div1转换为盒子模型 -webkit-line-clamp: 2;//设置div1的文本为2行 -webkit-box-orient: vertical;//从顶部向底部垂直布置子元素 } .row3{ display:flex; margin-top:30rpx; .time{ justify-content: flex-start; display: flex; align-items: center; font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: #999999; line-height: 36rpx; } .group-name{ justify-content: flex-end; display: flex; flex:1; align-items: center; font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: #999999; line-height: 36rpx; } } .sts { margin: 5rpx 0; font-size: 28rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 40rpx; // overflow: hidden;//超出隐藏 // text-overflow: ellipsis;//超出文本设置为... // display:-webkit-box;//将div1转换为盒子模型 // -webkit-line-clamp: 2;//设置div1的文本为2行 // -webkit-box-orient: vertical;//从顶部向底部垂直布置子元素 } } }