0
我有一些HTML内容比整个页面高。在这个内容的最后,我想包括一个水平旋转木马。我做的每一个尝试都会显示HTML内容,但我无法让传送带正常工作。如何在Sencha Touch中将灵活的html面板内容与水平旋转木马相结合?
这里就是我在代码明智...
Ext.create('Ext.Container', {
fullscreen: true,
scrollable: true,
items: [
{
xtype: 'panel',
html: '<h1>Lots of content</h1><p>With additional content</p><p>With additional content</p><ul><li>asdf</li><li>asdf</li></ul>',
style: 'background-color: #2E99FC'
},
{
xtype: 'carousel',
items: [
{
html : 'Item 1',
style: 'background-color: #5E99CC'
},
{
html : 'Item 2',
style: 'background-color: #759E60'
},
{
html : 'Item 3',
style: 'background-color: #FF0000'
}
]
}
]
});
任何帮助极大的赞赏。
谢谢 - 但如果面板中html内容的数量更大(更长),我希望能够向下滚动查看旋转木马,然后才能够使用旋转木马。使用上面的代码,旋转木马只是随着面板内容的增加而从页面的底部滚落。 –