dedsudiyu 16 hours ago
parent
commit
d81e785a68

+ 9 - 2
pages_safetyEducationExamination/views/home/component/docResource.vue

@@ -218,11 +218,18 @@
 		}
 		}
 		.card-body{
 		.card-body{
 			padding-bottom:30rpx;
 			padding-bottom:30rpx;
+			.top-table-box::-webkit-scrollbar {
+				display: none;
+				width: 0;
+				height: 0;
+			}
 			.top-table-box{
 			.top-table-box{
+				width:600rpx;
 				padding:0 28rpx;
 				padding:0 28rpx;
-				display: flex;
+				overflow-x: scroll
+				white-space: nowrap;  // 关键:强制不换行
 				view{
 				view{
-					flex:1;
+					display: inline-block;  // 关键:子元素改为行内块
 					text-align: center;
 					text-align: center;
 					line-height:50rpx;
 					line-height:50rpx;
 					padding:0 10rpx;
 					padding:0 10rpx;

+ 15 - 2
pages_safetyEducationExamination/views/home/index.vue

@@ -248,11 +248,18 @@
 			
 			
 			.card-body{
 			.card-body{
 				padding-bottom:30rpx;
 				padding-bottom:30rpx;
+				.top-table-box::-webkit-scrollbar {
+					display: none;
+					width: 0;
+					height: 0;
+				}
 				.top-table-box{
 				.top-table-box{
+					width:600rpx;
 					padding:0 28rpx;
 					padding:0 28rpx;
-					display: flex;
+					overflow-x: scroll
+					white-space: nowrap;  // 关键:强制不换行
 					view{
 					view{
-						flex:1;
+						display: inline-block;  // 关键:子元素改为行内块
 						text-align: center;
 						text-align: center;
 						line-height:50rpx;
 						line-height:50rpx;
 						padding:0 10rpx;
 						padding:0 10rpx;
@@ -289,6 +296,12 @@
 						}
 						}
 					}
 					}
 				}
 				}
+				.null-p{
+					text-align: center;
+					color:#999;
+					font-size:24rpx;
+					line-height:100rpx;
+				}
 			}
 			}
 		}
 		}
 	}
 	}