Parcourir la source

优化部门模板移动端头部

移动端隐藏网站名称文字,将徽标放大到可用宽度,并缩短顶部红色区域高度。同步更新部门模板各页面样式缓存版本,桌面端保持原样。

Validation:\n- 390px 视口下头部高度由 127px 调整为 92px\n- Logo 显示尺寸由约 240×40 放大到 300×50,且不遮挡菜单按钮\n- 移动端无横向溢出\n- 桌面端 Logo 尺寸和名称显示保持不变\n- 页面无资源加载失败或前端运行错误
非繁 il y a 1 mois
Parent
commit
5c2ce30198

+ 5 - 3
WebRoot/main/ffkj-portal/dept-red.css

@@ -790,9 +790,11 @@ body.screen-red-theme .screen-footer-philosophy span {
 .brand-logo{display:block;flex:0 0 auto;width:auto;max-width:none;height:52px;object-fit:contain}
 .brand-name{font-size:1em;font-weight:600;line-height:1.2}
 @media (max-width:900px){
-.brand{display:inline-flex;flex-direction:column;align-items:flex-end;width:max-content;max-width:calc(100% - 64px);gap:4px;white-space:normal}
-.brand-logo{width:240px;max-width:100%;height:auto;margin-left:12px}
-.brand-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:18px;text-align:right}
+.hero-head{height:92px}
+.head-inner{padding-top:16px}
+.brand{display:flex;flex-direction:row;align-items:center;width:calc(100% - 54px);max-width:none;gap:0;white-space:normal}
+.brand-logo{width:100%;max-width:320px;height:auto;margin-left:0}
+.brand-name{display:none}
 }
 
 /* 华夏部门模版:首页模块、轮播和底部信息 */

+ 1 - 1
WebRoot/web/upload/ffkj-template/dept-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/dept-red.css?v=20261017-dept-nav-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
 </head>
 <body class="screen-red-theme screen-list-page">
 	<%@ include file="dept-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/dept-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/dept-red.css?v=20261017-dept-nav-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="dept-red-header.jsp"%>

+ 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-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
 </head>
 <body class="screen-red-theme dept-red-page">
 	<%@ include file="dept-red-header.jsp"%>

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

@@ -13,7 +13,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/dept-red.css?v=20261017-dept-nav-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
 </head>
 <body class="screen-red-theme screen-list-page">
 	<%@ include file="dept-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/dept-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/dept-red.css?v=20261017-dept-nav-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="dept-red-header.jsp"%>