JBoss.orgCommunity Documentation

第 5 章 头部菜单

5.1. SaaS平台中的应用需要接入头部导航以提供租户和当前用户的信息导航

使用方式: 在应用html页面以js的方式引入即可

参数说明:(颜色值为6位16进制颜色值)

1. headbg 头部背景 , 默认值: 1f1f1f 。

2. headcolor 导航上字体颜色 , 默认值:fffff。

3. headselcolor 导航上选中的时候背景色, 默认值:e50012 。

4. headheight 头部高度, 默认值:41, 最小 35, 该值单位为px 。

注意:如果不带参数即为默认值。

在html中引入带参数的js即可

<script type="text/javascript" src="/saasportal/pc/component/header/customizedjs?
 headheight=65&headbg=5CBB45&headcolor=ffffed&headselcolor=FCD208"></script>				
              

前提条件:该js依赖jquery.js,需要在引入此js之前引入jquery.js,推荐使用jquery1.7以上版本

360浏览器支持:360 浏览器默认会使用兼容IE模式一般为IE7文档模式,头部导航目前只支持IE8以上, 因此需要在html中head标签中加入以下代码

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit|ie-stand">