2012-02-09 164 views
1

我只是想尋求幫助一個彈出式窗口

http://anonymousmind.site40.net/veryint/index.html

嘗試點擊圖庫,然後點擊圖像縮略圖內jQuery的圖片庫。我的問題是彈出窗口的位置不保留在中心。它僅在您第二次點擊後纔有效。我無法弄清楚這裏有什麼錯誤..感謝您的幫助。

+0

[我的網站或項目中的某些內容不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackexchange.com/questions/125997/something-in-my-web-site-or-project-doesnt-work-can-i-just-paste -a-link-to-it)**否** – Liam 2014-03-13 09:20:25

回答

0

通過螢火蟲在你的網站看,我看到你的DIV ID =「彈出式包裝」是風格 display: block; top: 179px; z-index: 9500; left: 646px;

酒店left: 646px;似乎是圖像設定到最右邊的最初原因。

後,我再次點擊圖片,知情同意本身中心在left:348px;

希望這給你解決問題的起點。

+2

#popup-wrap { \t position:absolute; 身高:自動; 寬度:自動; \t min-height:100px; \t min-width:100px; \t display:none; } #popup { \t background-image:url(Images/Gallery/loader.gif); \t background-repeat:no-repeat; \t background-position:center; \t background-color:#FFF; 身高:自動; 寬度:自動; \t padding:10px; \t min-height:100px; \t min-width:100px; \t display:none } 這是我的代碼。我應該刪除哪一個? – Zaoldyeck 2012-02-09 06:38:08

0

元素'popup-wrap'最初需要一個較高的左邊位置,下一次它正確地使用該位置。找到原因。它會解決問題。

Regards ..

+2

#popup-wrap { \t position:absolute; 身高:自動; 寬度:自動; \t min-height:100px; \t min-width:100px; \t display:none; } #popup { \t background-image:url(Images/Gallery/loader。GIF); \t background-repeat:no-repeat; \t background-position:center; \t background-color:#FFF; 身高:自動; 寬度:自動; \t padding:10px; \t min-height:100px; \t min-width:100px; \t display:none } 這是我的代碼,其中哪一個是問題? – Zaoldyeck 2012-02-09 06:36:03