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

修正新闻模板搜索按钮浏览器兼容

固定顶栏和移动导航搜索按钮为横向书写、单行不换行,并禁止按钮被输入框压缩。输入框增加最小宽度约束,同时统一新闻模板各页CSS缓存版本。

Validation:
- 本地 Microsoft Edge在1024、1280、1600宽度下按钮均保持横向
- white-space为nowrap,word-break为keep-all,输入框min-width为0
- 本地页面HTTP 200
非繁 2 месяцев назад
Родитель
Сommit
e6cd9f1e36

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

@@ -776,3 +776,9 @@ body.screen-red-theme .screen-footer-philosophy span {
 #campus .campus-feature-caption:hover,
 #campus .campus-feature-caption:active{color:#000;text-decoration:none}
 #campus .campus-feature-caption h3{color:#000;text-decoration:none}
+
+
+/* 顶栏搜索框:兼容 Edge/Chromium,按钮文字固定横向且不换行 */
+.search input{min-width:0;width:100%}
+.search button,
+.mobile-nav-search button{flex:0 0 auto;width:auto;min-width:max-content;padding:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;writing-mode:horizontal-tb;text-orientation:mixed;line-height:1;appearance:none;-webkit-appearance:none}

+ 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-layout-cleanup">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260922-search-button">
 </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-layout-cleanup">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260922-search-button">
 </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=20260922-campus-carousel-title">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260922-search-button">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-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/news-red.css?v=20260921-news-red-layout-cleanup">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260922-search-button">
 </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-layout-cleanup">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260922-search-button">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>