將左邊和上邊的子窗口置於中心位置的正確值是什麼? 我試了左= 500和頂= 500,但窗口現在在頁面的底部。 這裏是代碼:javascript,php - 如何將子窗口放置在中心?
<a href="items.php?desc='.urlencode($row[7]).'"onClick="MM_openBrWindow(\'items.php? desc='.urlencode($row[7]).'\',\'google\',\'width=650,height=500,left=500,top=5\'); return false;">
<img src="Folder-Blank-icon.png"></a>
你爲什麼要發送左/前500?你的代碼片段引用了其他看起來相關的方法和元素,但沒有關於它們的代碼,看看整個事情會很有用。 – 2013-05-08 01:21:39