鼠标移到datalist或者是grivdview上显示全部内容
2015-07-09 22:25
459 查看
<script> $("td.TIP").mouseover(function (e) { this.myTitle = this.title; this.title = ""; var toolTip = "<div id='tooltip'>" + this.myTitle + "</div>"; $("body").append(toolTip); $("#tooltip").css({ "position": "absolute", "padding": "5px", "background": "#F0F0E8", "border": "1px gray solid", "top": (e.pageY + y) + "px", "left": (e.pageX + x) + "px" }).show(200); }).mouseout(function () { this.title = this.myTitle; $("#tooltip").remove(); }).mousemove(function (e) { $("#tooltip").css({ "background": "#F0F0E8", "padding": "5px", "border": "1px gray solid", "top": (e.pageY + y) + "px", "left": (e.pageX + x) + "px" }) }) </script>
<td class="TIP" title='<%#Eval("IntNewsContent")%>'><%# BaseClass.CheckStr(Eval("IntNewsContent"), 5)%></td>
public static string CheckStr(object strValue, int Len) //字符串截取函数,如果长度大于30,则只显示前30个字符 { return (strValue.ToString().Length > Len) ? strValue.ToString().Substring(0, Len) + ".." : strValue.ToString(); }
相关文章推荐
- hadoop 2.7.0版本发布
- LeetCode || Two Sum
- 转:MyBean的安装
- 黑马程序员——高新技术---Java基础语法-数据类型和运算符
- Android第一天
- Java将某个目录下的所有文件及内容复制到另一目录
- ssh 端口转发实现外网 80 端口映射到内网 80 端口
- C#特性类的使用
- 第一个Android程序 -- HelloAndroid(续)
- [Keyword]static/const/volatile/intterupt的使用及注意
- poj3253Fence Repair 解题题解
- Linux常用文件介绍
- 南阳oj 题目98 成绩转换
- android得到控件的高度
- ssh
- 【数字图像处理之四】图像的放大缩小旋转
- 堆排序
- POJ1659Havel-Hakimi定理判断图的可图性
- sap scriptfom 多语言翻译
- 关于QT的系统总结