【问题标题】:Enyo menu get overlapped z-indexEnyo菜单得到重叠的z-index
【发布时间】:2012-07-31 13:30:07
【问题描述】:

问题是我单击菜单按钮时看不到弹出窗口,因为它隐藏在“主要内容”后面。我可以使用 Firebugs 检查元素工具看到这一点。

我尝试使用 z-index 样式,但似乎没有帮助..

是否有任何其他选择或创造性的解决方案来解决这个问题?

        {kind:"FittableColumns", style:"z-index:1;", fit:true, components:[
        {kind:"FittableRows", style:"z-index:1;", fit:true, components:[
            {content:"Main Content",style:"z-index:1;", fit:true},
            {kind: "onyx.Toolbar", style: "height:40px; padding:0px;", components: [
                {kind: "onyx.MenuDecorator", onSelect: "itemSelected", components: [
                    {kind: "onyx.IconButton", src: "assets/menu-icon-bookmark.png"},
                    {kind: "onyx.Menu",style:"z-index:99999;",components: [
                        {components: [
                            {kind: "onyx.IconButton", src: "assets/menu-icon-bookmark.png"},
                            {content: "Bookmarks"} 
                        ]}, 
                        {content: "Favorites"}, 
                        {classes: "onyx-menu-divider"}, 
                        {content: "Recents"}, 
                    ]} 
                ]},  
            ]}

代码继续,但菜单附近没有重叠。

提前Tkx寻求解决方案。

【问题讨论】:

    标签: menu z-index overlap enyo


    【解决方案1】:

    解决了添加这个,并做了奇迹{kind: "onyx.Menu", floating: true, components: [

    【讨论】:

      猜你喜欢
      • 2015-11-25
      • 2023-04-10
      • 1970-01-01
      • 2018-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-31
      相关资源
      最近更新 更多