$(document).ready(function() {
$('.i-list01').hide();
$('.c1').mousemove(function() {
$('.i-list01').show();
});
$('.c1').mouseleave(function() {
$('.i-list01').hide();
});
});
jsp中的代码如下:
<td class="formLabel"> <a class="c1">smsBusIntroduceSubscriber</a>
<div class="i-list01">
短信厅描述处理器
</div>怎么能让鼠标放上之后i-list01 所在的div是浮动的
$('.i-list01').hide();
$('.c1').mousemove(function() {
$('.i-list01').show();
});
$('.c1').mouseleave(function() {
$('.i-list01').hide();
});
});
jsp中的代码如下:
<td class="formLabel"> <a class="c1">smsBusIntroduceSubscriber</a>
<div class="i-list01">
短信厅描述处理器
</div>怎么能让鼠标放上之后i-list01 所在的div是浮动的
解决方案 »
- struts.xml文件位置改变 web.xml修改问题
- xfire1.2开发WS报错 org.codehaus.xfire.handler.DefaultFaultHandler invoke, Invalid operation,binding.Wrap
- ==和equals
- struts2中表单提交,总是返回input配置页面。
- 求教!!关于类型转换问题!!!!!!!!!!!!!!!!!
- 如何用bean标签输出one-to-many关系中对象的值
- 用Axis访问Xfire发布的Web Service时的问题
- WEBWORK怎么和SRPING结合呀?
- 应用程序中如何获取ie地址栏的url
- tomcat重复配置出错问题
- Struts2配置错误求解
- java控制打印机打印小票的小异常
<tr>
<td title="sdf">sdf</td>
<td title="as">as</td>
<td title="df">df</td>
</tr>
</table>
LZ可以直接给td加 title属性啊、、、
<tr>
<td title="sdf">sdf</td>
<td title="as">as</td>
<td title="df">df</td>
</tr>
</table>
LZ可以直接给td加 title属性啊、、、
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script src="jquery.js"></script><script>
$(document).ready(function(){
var showTips = function() {
$("#tips").show();
}
var hideTips = function() {
$("#tips").hide();
}
var moveTips = function(e) {
var x = (e.originalEvent.x || e.originalEvent.layerX || 0) + 20;
var y = (e.originalEvent.y || e.originalEvent.layerY || 0) + 20;
$("#tips").css("left",x);
$("#tips").css("top",y);
//$("#s").append(x + "-" + y);
}
$("#text").mouseenter(showTips);
$("#text").mouseleave(hideTips);
$("#text").mousemove(moveTips);
});
</script>
</head>
<body>
<a href="#" id="text">link button</a>
<div id="tips" style="position:absolute;display:none;border:1px solid blue;">tips text</div>
<div id="s"></div>
</body>
</html>