کد HTML:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script>
function show(){
var t=document.getElementById('t');
var b=document.getElementById('b');
t.style.top=b.offsetTop+'px';
t.style.left=b.offsetLeft+b.offsetWidth+'px';
t.style.display='block';
}
</script>
<div style="height:100px;background:#999"></div>
<div style="background:#CCC">
<button id="b" onclick="show()">click</button>
<table id="t" align="center" border="1" style="position:absolute;display:none;z-index:1000;">
<tr>
<td>
test
</td>
</tr>
<tr>
<td >
test
</td>
</tr>
</table>
</div>