我有這樣的HTML代碼所示:我想股利我的TD的如圖片
<table>
<tr>
<td>
<p id="price">10000</p>
<div class="no" hidden="hidden">Description</div>
</td>
</tr>
</table>
我的jQuery代碼是:
<script type="text/javascript">
$(document).ready(function(){
$("#price").live("mouseenter", function() {
$(this).next("div.no").show();
});
$("#price").live("mouseleave", function() {
$(this).next("div.no").hide();
});
});
</script>
現在我想的標籤在特定的高度。 讓我描述你在圖片:
進入鼠標表就像在此之前:
但我要的東西:
進入鼠標上面的代碼將使得在此之後有如下所示: 我該怎麼做?
您需要使用絕對定位。 – Michael 2013-03-25 13:50:38
你目前的CSS是什麼? – Mooseman 2013-03-25 13:51:17