所属分类:工具提示

jQuery提示插件jQuery.toolTip.js

37089 浏览 314 收藏 3 留言
ie兼容8

插件描述

实现自定的title样式

更新时间
2016-08-15 15:08
下载量
1217
所需 JQ 币
0
分类
UI / 工具提示

详细内容

使用方法

页面中 导入css和js文件

<link rel="stylesheet" href="css/jQuery.toolTip.css" media="screen" />
<script type="text/javascript" src="js/jQuery.toolTip.js"></script>

在初始化页面时加载

$('.tooltip').toolTip();

在使用title属性的元素中 加入class="tooltip"

<a href="" class="tooltip" title="<img src='images/user.png'><br/> wahahaha<br/><h1>真、善、忍</h1>">

OK !


关键词:jQuery提示插件jQuery.toolTip.js,jQuery.toolTip.js,自定的title样式,jquery,jquery插件

讨论这个项目 (3)

dkkwhdq

这个插件有个小问题,特意登陆评论一下。

“当title内是纯字母或纯数字,过多且中间没有空格时,内容会超出底层的黑色方框”

相信作者是以‘空格’来区分换行的,

<a href="#" class="tooltip" title="Straight to your inbox  Be the first to Straight to your inbox  00000000000000000000000000000018888888888" >RSS FEED</a>
<a href="#" class="tooltip" title="Straight to your inbox  Be the first to Straight to your inbox  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaa" >RSS FEED</a>

现在项目中有个title需要提示纯单号的需求,所以发现了这个问题,有望作者能够尽快修复。

其余挺好用,支持一下,不错!

Thάnαtος

如果能做上弹出窗体边缘与window窗口边缘的碰撞判断,那就非常完美了

光光900
jcTitle可以解决,站内有的 ,可以进我的个人首页查看 http://www.jq22.com/jquery-info20952

当前页面为只读展示,仅显示已审核留言;提交留言功能暂未开放。