Javascript Can';不要让水平滚动开始工作

Javascript Can';不要让水平滚动开始工作,javascript,scroll,webos,palm-pre,Javascript,Scroll,Webos,Palm Pre,无法使其水平滚动。我错过了什么 以下是我在first-scene.html中的代码: <div id="main" class="palm-hasheader"> <div class="palm-header">Header</div> <div id="scrollerId" style="width:500px; height:500px" x-mojo-element="Scroller"> <d

无法使其水平滚动。我错过了什么

以下是我在first-scene.html中的代码:

<div id="main" class="palm-hasheader">
     <div class="palm-header">Header</div>
      <div id="scrollerId" style="width:500px; height:500px" x-mojo-element="Scroller">
        <div>
        My Text that goes on... and on... and on... horizontally...
        </div>  
    </div>       
</div>

只要快速浏览一下html snipet就可以告诉我,你并没有接近你的部门。请尝试以下html:

<div id="main" class="palm-hasheader">
    <div class="palm-header">Header</div>
        <div id="scrollerId" style="width:500px; height:500px" x-mojo-element="Scroller">
            <div>
            My Text that goes on... and on... and on... horizontally...
            </div>
        </div>
    </div>
</div>

标题
我的文字继续。。。而且。。。而且。。。水平地。。。

正如我所说,我没有比前几行更深入地探讨这个问题

我明白了。scrollderId是具有设置的宽度和高度的包含div。包含div内的div的新宽度设置大于要向后滚动的包含div,并用于:

<div id="scrollerId" style="width:320px; height:100px" x-mojo-element="Scroller">
    <div style="width:500px">
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
    </div>
</div>  

这就是我的名声
我不敢相信还有另一个
永远只是另一个
我无法避免我无法控制的事情
我正在失去优势
我还是站不下来
我知道,是的,我知道,是的
这就是我的名声
我不敢相信还有另一个
永远只是另一个
我无法避免我无法控制的事情
我正在失去优势
我还是站不下来
我知道,是的,我知道,是的
这就是我的名声
我不敢相信还有另一个
永远只是另一个
我无法避免我无法控制的事情
我正在失去优势
我还是站不下来
我知道,是的,我知道,是的

实际上它已经关闭了。div class=“palm header”有一个结束div。它位于单词“header”之后。ooops…..)很抱歉,我只是想再回答一个问题,然后就去睡觉,但我似乎太累了,无法回答。。。是否有在线演示,以便我们检查?
<div id="scrollerId" style="width:320px; height:100px" x-mojo-element="Scroller">
    <div style="width:500px">
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
                Complication's my claim to fame
                And I can't believe there's another
                Constantly just another
                I can't avoid what I can't control
                And I'm losing ground
                Still I can't stand down
                And I know, yeah I know, yeah
    </div>
</div>