---
title: "sencha touche  Ext.Carousel 用法"
author: "junjun16818"
date: "2011-02-17T17:46:06Z"
tags: ["CSS", "EXT", "UI"]
categories: ["Web前端"]
slug: "sencha-touche-ext-carousel"
draft: false
lastmod: "2011-02-17T17:46:06Z"
id: 909166
url: "https://junjun16818.iteye.com/blog/909166"
---

```
//这个控件是 可以用鼠标手势切换内容

var carousel = new Ext.Carousel({
            fullscreen: false,  //全屏
			padding:60, // 距离
            //ui: 'top',
            direction: 'vertical',  //设置为水平  默认为垂直
            defaults: {
                cls: 'card'   //设定css 样式
            },
            items: temp  //显示内容
			
        });
```