专栏名称: AT阿宝哥
15年IT互联网从业经验,专注产品方案,人才...
目录
相关文章推荐
51好读  ›  专栏  ›  AT阿宝哥

《Axure官方文档译读》之0306:Classic Menu Widgets(经典菜单部件)

AT阿宝哥  · 简书  ·  · 2020-01-09 01:38

正文

Axure RP

Classic Menu Widgets

经典菜单组件

Horizontal Menu widget
Vertical Menu widget

Classic menu widgets are used to build navigation menus. You can customize the number of top-level menu items and create submenus for each menu layer.

经典的菜单小部件用于构建导航菜单。您可以自定义顶级菜单项的数量,并为每个菜单层创建子菜单。

Submenus are automatically shown in the web browser when you mouse over the parent item, and they are hidden again when you mouse off both the submenu and its parent item.

当您将鼠标移到父项目上时,子菜单将自动显示在web浏览器中,当您将鼠标移到子菜单及其父项目上时,它们将再次隐藏。

Tip
提示

To create a menu that works differently, such as with mouse clicks, you can make a custom navigation menu with shape widgets.
要创建工作方式不同的菜单(如鼠标单击),可以使用形状小部件创建自定义导航菜单。

Two types of classic menu are available: a horizontal menu whose submenus open downard and a vertical menu whose submenus open to the right.

有两种经典菜单:一种是水平菜单,其子菜单向下打开;另一种是垂直菜单,其子菜单向右打开。

1、Adding and Removing Menu Items

添加和删除菜单项目

The classic menu widgets start with three top-level menu items. To add additional menu items, right-click an existing option and choose either Add Menu Item After or Add Menu Item Before . To remove an option, right-click it and choose Delete Menu Item .

典型的菜单小部件从三个顶级菜单项开始。若要添加其他菜单项,请右键单击现有选项并选择 之后添加菜单项或 之前添加菜单项。要删除一个选项,右键单击它并选择 删除菜单项

classic menu widgets: adding and removing items

2、Adding and Removing Submenus

添加和删除子菜单

By default, the classic menu does not have any submenus. You can add submenus to any menu item (including items in submenus) by right-clicking the item and choosing Add Submenu . Three submenu items will be added, and you can add and remove items per the instructions in the previous section.

默认情况下,经典菜单没有任何子菜单。您可以向任何菜单项添加子菜单(包括子菜单中的项),方法是右键单击该项并选择 添加子菜单 。将添加三个子菜单项,您可以根据前一节中的说明添加和删除项。

To remove a submenu, right-click its parent menu item and select Delete Submenu .

要删除子菜单,右键单击其父菜单项并选择 删除子菜单

classic menu widgets: adding submenus

3、Menu Padding

菜单填充

You can add padding around menu and submenu items by right-clicking an item and selecting Edit Menu Padding . This will push the menu's borders out away from the items, making the menu widget's fill color and border distinguishable from those of its items.

您可以通过右键单击一个项目并选择**Edit menu padding **来为菜单和子菜单项添加内边距。这将把菜单的边框从项目中推出,使菜单小部件的填充颜色和边框与项目的不同。







请到「今天看啥」查看全文