0

对于大屏幕,用于切换侧面菜单的汉堡菜单图标会消失。因此,侧面菜单窗格会永久保持打开状态。我无法在此类屏幕上获得菜单图标,因此用户可以打开和关闭侧面菜单。我没有从以前的查询中找到解决方案,但在文档中找到了它。可能有人会觉得它有用。解决方案:我能够使用 ion-split-pane 属性。

或者

请参阅:https ://ionicframework.com/docs/api/split-pane

谢谢!

4

1 回答 1

0

见上文 - 答案已包含在内。代码如下。

<ion-split-pane when="xl" contentId="main-content"> <!-- show the permanent left menu only for extra large screens-->

或者

<ion-split-pane when="(min-width: 4000px)" contentId="main-content"> <!-- show the permanent left menu only for basically all screens (except maybe big TVs)-->
于 2020-08-28T03:00:30.943 回答