简体   繁体   English

在面板中竞争更多内容时如何水平滚动(已经使用了overflow-x:scroll)?

[英]how to scroll horizontally when contend in more in panel (already use overflow-x: scroll )?

can you please tell me how to scroll horizontally when contend is more in horizontally ?I already apply overflow-x: scroll; 你能告诉我在竞争更多时如何水平滚动吗?我已经应用了overflow-x:scroll; .But it not work for me . 但是对我来说不起作用。 在此处输入图片说明

I am getting contend out side the panel .it should scroll when contend is more .?can we scroll in panel ? 我正在面板外争夺。当有更多争夺时应该滚动。我们可以在面板内滚动吗?

http://jsfiddle.net/mXyHL/8/ I just click "button " on header it open panel and expand all nodes .my node goes outside the panel ? http://jsfiddle.net/mXyHL/8/我只要单击标题上的“按钮”,它就会打开面板并展开所有节点。我的节点是否超出面板?

can we scroll horizontally ? 我们可以水平滚动吗?

<div data-role="page">    
    <div data-role="header" data-position="fixed">
        <a href="#menu-panel" data-icon="grid" data-iconpos="notext">Cancel</a> <h1>Home</h1>
    </div>
    <div data-role="panel" id="menu-panel">
        <div id="tree">
    <ul>
        <li id="a">a</li>
        <li id="b">b
            <ul>
                <li id="b-a-1">b-a</li>
                <li id="b-b-2">b-b
                    <ul>
                        <li id="b-b-a">b-b-a
                         <ul>
                        <li id="s-b-b-a">ssb-b-a
                              <ul>
                        <li id="sv-b-b-a">svvsb-b-a</li>
                        <li id="svvs-b-b-b">svvsb-b-b</li>
                    </ul>
                             </li>
                        <li id="ss-b-b-b">ssb-b-b</li>
                    </ul>

                        </li>
                        <li id="b-b-b">b-b-b</li>
                    </ul>
                </li>
            </ul>
        </li>
        <li id="c-1">c
            <ul>
                <li id="not-c-a-1">c-a</li>
                <li id="not-c-b-2">c-b</li>
            </ul>
            </li>

    </ul>
</div>
    </div><!-- /panel -->       
</div><!-- /page -->

You're defining you CSS wrong. 您将CSS定义错误。 It should be #menu-panel , not .menu-panel . 它应该是#menu-panel ,而不是.menu-panel You gave your div an ID, not a class. 您给了div一个ID,而不是一个班级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM