table.html

来自「sturts_menu 的源代码 主要提过了常用的menu菜单样式」· HTML 代码 · 共 22 行

HTML
22
字号
## The displayMenu macro (at the bottom of this template) is defined in
## struts-menu.jar!/net/sf/displayer/globalMacros.vm. It has a callback to the #menuItem macro
## you see below. You can override this macro by creating a menuMacros.vm template
## at the root of your classpath

#macro( menuItem $menu $level )
  <tr><td>
  #foreach ($i in [0..$level])
    &nbsp;&nbsp;
  #end
  #if ($menu.url) 
    <a href="$menu.url" title="$displayer.getMessage($menu.title)">
        $displayer.getMessage($menu.title)</a>
  #else 
    $displayer.getMessage($menu.title)
  #end
  </td></tr>
#end

<table>
#displayMenu($menu 0)
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?