2016-01-21 44 views
0

好吧,我得到了這個簡單的HTML代碼如何定位彈出窗口,以便頂部=文本的頂部和左側=文本的左側+ Javascript中文本的長度?

This is the text <a href="javascript:window.open('abc.html','width=500,height=350')"> 
<img src="http://www.clipartbest.com/cliparts/9iz/Gaj/9izGaj9iE.gif" 
alt="show" height="15" width="15" /></a> 

我想,當圖像上用戶點擊它會顯示如下圖:

enter image description here

我不喜歡的東西的JQuery ,所以

你可以使用簡單的JavaScript代碼嗎?儘可能少的代碼?

回答

相關問題