求解JQ代码~~~~

q510473863 q510473863 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<!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=utf-8" />
<title>无标题文档</title>
<script src="js/jquery-1.4.2.min.js"></script>
<script>
$(function(){
$("#touxiang").mousemove(function(){
$("#ttt").show();
})
})
</script>
<style type="text/css">
.tx_img{width:150px;}
.tx_img img{ float:left; max-width:140px; max-height:140px;}
.tx_list{position:absolute; left:0px; top:0px; z-index:100; width:170px; display:none; border:1px solid #ccc;}
.tx_img2{float:right; clear:right; width:10px; height:150px; background-color:#ccc;}
</style>
</head>

<body>
<div id="touxiang" class="tx_img">
<img src="images/untitled.bmp" />
</div>
<div id="ttt" class="tx_list">
<div class="tx_img2">
+
</div>
</div>

</body>
</html>
主要实现鼠标移上去显示灰色部分。就像是菜单一样悬停。鼠标移开灰色部分隐藏了
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
q510473863
CSS 61,117 成员 60,701 内容