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

一线动态标题单行省略

一线动态标题限制为单行,超出宽度显示省略号,来源和日期布局保持不变。

Validation: hxcs 超长标题 clientWidth=532、scrollWidth=648,white-space=nowrap、text-overflow=ellipsis。
非繁 2 месяцев назад
Родитель
Сommit
baefe8a5a0

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

@@ -445,3 +445,6 @@ body.screen-list-page .footer-top{margin-top:auto}
 #downloads .download-row>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch;min-width:0}
 #downloads .download-row>span{align-self:center}
 }
+
+/* 一线动态标题单行省略 */
+#campus-life > div:first-child .sub-list li strong{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

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

@@ -10,7 +10,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-download-copy-center">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-frontline-title-ellipsis">
 </head>
 <body class="screen-red-theme screen-list-page">
 	<%@ 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="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-download-copy-center">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-frontline-title-ellipsis">
 </head>
 <body class="screen-red-theme">
 	<%@ 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">
 	<title>${website.seoTitle}</title>
 	<meta name="description" content="${website.seoDescription}">
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-download-copy-center">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-frontline-title-ellipsis">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

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

@@ -17,7 +17,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-download-copy-center">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-frontline-title-ellipsis">
 </head>
 <body class="screen-red-theme screen-list-page">
 	<%@ 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 name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-download-copy-center">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260921-news-red-frontline-title-ellipsis">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>