我需要在2格之間畫一條線。我目前使用jQuery。在2格之間畫一條線
以下是我的HTML代碼。我需要從編號爲friend1
的div中劃出一條線到編號爲friend2
的div。
<div style="top:30px;left:95px" id="friend1" original-title="Rafael Rosenberg1">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
<div style="top:30px;left:250px" id="friend2" original-title="Rafael Rosenberg2">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
和你嘗試過什麼? – Indranil 2011-12-22 01:12:25
在DHTML中畫線不是一件容易的事情。您可能要考慮使用像SVG或canvas元素這樣的圖形庫。 如果沒有更多信息,我們很難幫助您。 – Ring 2011-12-22 01:13:52