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

学院风采标题改为单行省略

学院风采卡片标题固定单行显示,超出卡片宽度时使用省略号,避免长标题换行撑高标题层。同步更新样式缓存版本。

Validation:\n- Playwright 核验桌面端标题高度与行高一致,长标题均处于截断状态\n- 首页无资源加载失败或前端运行错误
非繁 1 месяц назад
Родитель
Сommit
19b0354048

+ 1 - 1
WebRoot/main/ffkj-portal/dept-red.css

@@ -888,7 +888,7 @@ body.screen-red-theme .screen-footer-philosophy span {
 .dept-showcase-card:hover{color:#fff}
 .dept-showcase-card:hover>img{transform:scale(1.03)}
 .dept-showcase-card>span{position:absolute;left:0;right:0;bottom:0;display:block;flex:none;padding:13px 15px 14px;color:#fff;background:rgba(0,0,0,.48)}
-.dept-showcase-card strong{display:-webkit-box;overflow:hidden;color:#fff;font-size:15px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
+.dept-showcase-card strong{display:block;overflow:hidden;color:#fff;font-size:15px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
 @media (max-width:900px){
   .dept-major-showcase-section{margin-top:36px}
   .dept-two-module-grid{grid-template-columns:minmax(0,1fr);gap:36px}

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

@@ -10,7 +10,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
 	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-dept-showcase-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-dept-showcase-2">
 </head>
 <body class="screen-red-theme dept-red-page">
 	<%@ include file="dept-red-header.jsp"%>