---
title: "ExtJs源码分析与学习—Ext.ToolTip应用"
author: "linder0209"
date: "2011-12-29T14:18:45Z"
tags: []
categories: ["Web前端"]
slug: "extjs-ext-tooltip"
draft: false
lastmod: "2011-12-29T14:18:45Z"
id: 1329422
url: "https://linder0209.iteye.com/blog/1329422"
---

源码待分析，先粘一例子备用

 

```
        //要显示提示信息的目标id
        var targetId = this.titleContext.first().first().id;
	new Ext.ToolTip({
                baseCls: 'z-workflow-tip',//自定义样式
                target: targetId,
                html: str,
                maxWidth: 600,//最大宽度
                floating: {//渲染提示信息效果
                    shadow: false,
                    shim: false,
                    useDisplay: true,
                    constrain: false
                }
            });
```