87,993
社区成员
发帖
与我相关
我的任务
分享<html>
<head>
<title>测试</title>
<style>
.dis{
width: 120px;
line-height: 20px;
height: 60px;
background-color: blue;
border-bottom-width: 1px;
display:none;
}
</style>
<script>
function show(d){
document.getElementById(d).style.display='block'; //显示层
}
function hide(d){
document.getElementById(d).style.display='none'; //隐藏层
}
</script>
</head>
<body>
<span href='#' onmousemove="show('dis')" onmouseout="hide('dis')">鼠标放上显示层</span>
<div id="dis" class="dis">层内容</div>
</body>
</htmle>
这个是没有悬停的时候前端的界面 你这个说的也太不清楚吧?一点描述都没有
你这个说的也太不清楚吧?一点描述都没有