Sencha Touch - 浮动组件
说明
这将创建一个浮动组件。
以下是一个简单的示例,展示了其用法。
<!DOCTYPE html> <html> <head> <link href = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/resources/css/sencha-touch.css" rel = "stylesheet" /> <script type = "text/javascript" src = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/sencha-touch-all.js"> </script> <script type = "text/javascript"> Ext.application({ name: 'Sencha', launch: function() { Ext.Viewport.add({ xtype: 'panel', html: 'This is a centered panel', centered: true }); } }); </script> </head> <body> </body> </html>
这将产生以下结果 −
sencha_touch_view_components.html