Просмотр исходного кода

锁定融媒头条卡片图片与灰色区列宽

将融媒头条卡片列宽由1fr改为精确100%,显式限制图片和灰色内容区宽度及box-sizing,避免浏览器缩放或亚像素排版造成左右错位。\n\nValidation:\n- 900/1000/1200/1280/1440五档宽度均验证\n- 所有卡片图片与灰色块左右边界偏差均为0px
非繁 2 месяцев назад
Родитель
Сommit
3a3963314d

+ 6 - 0
WebRoot/main/ffkj-portal/news-red.css

@@ -184,3 +184,9 @@ body.screen-red-theme{--hx-red:#941c1e;--hx-red-dark:#580b0c;--hx-footer-soft:#f
 /* 栏目辅助文字:更多缩小两号,英文标注收紧字距 */
 /* 栏目辅助文字:更多缩小两号,英文标注收紧字距 */
 .section-title .more{font-size:12px;line-height:18px}
 .section-title .more{font-size:12px;line-height:18px}
 .section-title em{letter-spacing:.5px}
 .section-title em{letter-spacing:.5px}
+
+
+/* 融媒头条卡片:锁定图片与灰色内容区为同一精确列宽 */
+.media-card{grid-template-columns:100%;width:100%;max-width:100%;overflow:hidden}
+.media-card img,.media-card .meta{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
+.media-card .meta{margin-left:0;margin-right:0}

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-catalog.jsp

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-frontline-72">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-card-lock">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-details.jsp

@@ -7,7 +7,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-frontline-72">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-card-lock">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-index.jsp

@@ -12,7 +12,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${website.seoTitle}</title>
 	<title>${website.seoTitle}</title>
 	<meta name="description" content="${website.seoDescription}">
 	<meta name="description" content="${website.seoDescription}">
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-frontline-72">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-card-lock">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-list.jsp

@@ -15,7 +15,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-frontline-72">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-card-lock">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-search.jsp

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-frontline-72">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-card-lock">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>