<style>
.bjceng{ width:auto; height:auto; background:#CCCCCC; position:absolute; top:0px; left:0px;filter:alpha(opacity=90);-moz-opacity:0.9;opacity:0.9; display:none;}
.bjceng a{display:block; width:50%; height:80px; float:left; display:inline; text-align:center; line-height:80px; color:#FF6600; font-size:12px; font-weight:bold;}
</style>
<div class="bjceng">
<a href="#">编辑</a>
<a href="#">删除</a>
</div>
<script>
$(".sckLpubp").hover(function(){
swidth=$(this).width(); //获得鼠标经过这个div的宽度
sheight=$(this).height();//获得鼠标经过这个div的高度度
soffset=$(this).offset();//获得鼠标经过这个div的偏移位置
$('.bjceng').css({'width':swidth+1,'height':sheight+1,'top':soffset.top,'left':soffset.left});//设置弹出层的宽 高 位置
$('.bjceng').show();这层显示
},function(){
$('.bjceng').hide();
}
);
</script>
1 不能调整位置,必须在那个div上面显示 2 怎样调整呢
追答$(".sckLpubp").mouseover(function(){看这个效果对不对
还是闪