EasyUI - Tooltip 提示控件
2015-10-09 23:51
537 查看
第一种:
效果:
html代码:
不需要js代码,显示的是title中的内容。
第二种:
效果:
html代码:
JS代码:
position string 消息框位置。可用值有:"left","right","top","bottom" bottom 。
content string 消息框内容。
onShow e 在显示提示框的时候触发。
效果:
html代码:
不需要js代码,显示的是title中的内容。
<div> <a href="#" title="This is the tooltip message." class="easyui-tooltip">Hover me 01</a> </div>
第二种:
效果:
html代码:
<div> <a id="dd" href="javascript:void(0)" >Hover here 02</a> </div>
JS代码:
position string 消息框位置。可用值有:"left","right","top","bottom" bottom 。
content string 消息框内容。
onShow e 在显示提示框的时候触发。
$(function () { $('#dd').tooltip({ position: 'right', content: '<span style="color:#fff">This is the tooltip message.</span>', onShow: function () { $(this).tooltip('tip').css({ backgroundColor: '#666', borderColor: '#666' }); } }); })
相关文章推荐
- EasyUI - Resizable 调整大小
- 模块化利器: 一篇文章掌握RequireJS常用知识
- UICollectionView的布局
- PKU 1140 - Brackets Sequence (区间dp + 记忆化)
- IOS笔记UI--UI控件的灵活运用
- (转帖)关于easyui中的datagrid在加载数据时候报错:无法获取属性"Length"的值,对象为null或未定义
- EasyUI - Draggable 拖动控件
- Quick Sort
- 百度 在线编辑器ueditor1_4_3使用方法及配置
- UITabBarController自定义风格Item
- ios笔记UI--汤姆猫小项目(UIbutton使用)
- iOS:手势的详解UIGestureReconizer
- iOS界面编程-UIActionSheet
- iOS中 UIToolBar 技术分享
- iOS中 UIToolBar 技术分享
- UITabBarController的用法 及使用系统风格Item
- UI第十七讲.图片异步加载(包括第三方), KVO, KVC
- hdu 1423 Greatest Common Increasing Subsequence 最长公共上升子序列
- ios可视化编程 UI高级 UI_13
- ios可视化编程 UI高级 UI_13