关于jquery easyui 控件显示位置的问题

使用了menu控件 但是显示的时候出现的位置,有点不对,

debug中的htlml代码为:

html代码为:

知道的帮忙看下这是为什么,感激不尽!,没分了
最新回答
纯家小可爱

2024-09-29 09:33:35

我怀疑可能是你没有给 div指定宽度
我是这么用的: html代码
                            <a id="a_contrl" icon="icon-help">控制面板</a>
                            <div id="cusmenu" class='easyui-menu' style="width: 120px;">
                                <div>
                                    <span>更换皮肤</span>
                                    <div style="width: 120px;">
                                        <div>
                                            default</div>
                                        <div>
                                            black</div>
                                        <div>
                                            gray</div>
                                        <div>
                                            bootstrap</div>
                                        <div>
                                            metro</div>
                                    </div>
                                </div>
                                <div class="menu-sep">
                                </div>
                                <div id='div_exit' onclick="IndexJS.LogOff()">
                                    注销</div>
                            </div>

js 代码:

        /*控制面板*/
        $('#a_contrl').menubutton({
            menu: '#cusmenu'
        });
雨零

2024-09-29 01:25:52

你用的是menu-shadow,有什么不对?鼠标移上去就出来了吧
追问
我用的menu  右键点一个出来一个菜单,但是他出现的位置不对,在Ie可以火狐就不行了