Windows 8 屏幕右侧的应用程序栏按钮Windows 8 metro风格的应用程序

Windows 8 屏幕右侧的应用程序栏按钮Windows 8 metro风格的应用程序,windows-8,Windows 8,我正在使用html、javascript和css开发metro风格的Windows8应用程序 我正在使用应用程序底部的应用程序栏。下面是html代码 <div id="appbarbottom" data-win-control="WinJS.UI.AppBar" data-win-options="{layout:'custom',placement:'bottom'}"> <button id="playerBut" data-win-control="WinJS.

我正在使用html、javascript和css开发metro风格的Windows8应用程序

我正在使用应用程序底部的应用程序栏。下面是html代码

<div id="appbarbottom" data-win-control="WinJS.UI.AppBar" data-win-options="{layout:'custom',placement:'bottom'}">
    <button id="playerBut" data-win-control="WinJS.UI.AppBarCommand" data-win-options="{section:'global',label:'Player', icon:'placeholder',type:'flyout',flyout:sportsFlyout}" type="button"></button>

</div>

我在官方文件中看到,
部分:'global'
将使按钮位于右侧。我那样做了,但没有效果

我尝试了
部分:'selection'
,但按钮仍然保留在左侧

我一直在寻找替代方案,但每个人都说同样的话,所以我如何才能实现我的目标。请帮助我


谢谢。

我已经从
数据赢取选项=“{layout:'custom',placement:'bottom')中删除了
'layout:custom'

它解决了我的问题

我几乎在这上面浪费了4个小时

我希望这能帮助其他人


谢谢。

我已经从
数据赢选项=“{layout:'custom',placement:'bottom')中删除了
'layout:custom'

它解决了我的问题

我几乎在这上面浪费了4个小时

我希望这能帮助其他人

谢谢