维护消息
文件 codebase\netmarkets\jsp\util\begin_custom.jspf 还可用于向页面添加自定义消息以进行系统维护或大众传播。例如,将以下代码放置在此文件中:
<div style="color: sienna; position: absolute; top: 15px; z-index: 1000; left: 300px; font-size: 18px;">
<h1>This is a test</h1></div>
</div>
在此示例中,应将消息的任何 HTML 放置在 div 中。然后,您可以根据需要使用 css 来定位消息并为其设置样式。
字符编码注意事项
在最新版本的 Tomcat 中,应将以下行添加到 begin_custom.jspf 中,以确保将字符集设置为 UTF-8。 否则内容可能无法正确显示。
<%@ page contentType="text/html; charset=UTF-8" %>
这对您有帮助吗?