如何更改工具提示的宽度和高度 [英] How to change the width and height of a tooltip

查看:62
本文介绍了如何更改工具提示的宽度和高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个树状视图.在子节点Onmouseover中,我必须在工具提示或弹出窗口上显示一些内容.内容很大.截至目前,我已经使用了一个弹出窗口,看起来不太好.工具提示似乎很整洁,但是我的所有内容都没有显示出来..有什么办法可以整理出这一条..请帮助,

谢谢

I have a tree view.In child node, Onmouseover, I have to display some contents on a tool tip or popup. The content is large. As of now, i have used a popup, which is not looking good. Tooltip seems to be neat, but all my contents are not getting displayed.. Is there any way to sortout this one.. Please help,

Thanks

推荐答案

啊.刚刚再次看到了这个问题,您已经点击了左侧的有问题或评论"按钮.这会将电子邮件通知发送给该问题或答案的发布者.回复评论时,您需要点击评论右侧的[<-回复]按钮.

无论如何,这是一项快速的鞭打工作,可为您弹出一个像工具提示一样工作的弹出窗口.您也会显示一个chuck html.
http://jsfiddle.net/enhzflep/U3qys/ [
Ahhhh. Just saw this question again, you''ve hit the "Have a Question or Comment" button on the left. This sends an email notification to the poster of that Question or Answer. When replying to a comment, you need to hit the [<-- Reply] button on the right-hand side of the comment.

Anyhow, here''s a quick whip-together job that gives you a pop up that works like a tool-tip. You an chuck html into be displayed too.
http://jsfiddle.net/enhzflep/U3qys/[^]


Here''s the one I made and an example of it''s use. Obviously, you could add an attribute to the elements (perhaps mTitle) and set this to contain the tooltip''s html for that element. Then you can set the contents of the popup window to reflect the value of mTitle.

I''m not sure, but perhaps you can add a style that will disable display of the standard tool-tip. If so, it would make your html cleaner and avoid any potential troubles with using custom attributes. I just read yesterday of old code that added an attribute ''translate'' to elements. This used to be fine - ''recently'' this attribute was added to the official spec - causing all sorts of trauma to the maintainer. poor sod!


这篇关于如何更改工具提示的宽度和高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆