直播定點http://uposonghar.com/new-video/彈出窗口不會apperar在正確的位置
如果你去那個網站,然後懸停在嵌入的YouTube視頻,然後分享2鍵會出現,1爲Facebook & 1嘰嘰喳喳。點擊該按鈕,即時共享窗口後出現&5秒陸續彈出窗口中將出現像但─
但是,彈出窗口不會出現在正確的位置,我希望把它集中在垂直+水平。
我的CSS代碼 -
#reveal-modal-bg {
position: fixed;
height: 100%;
width: 100%;
background: #000;
background: rgba(0,0,0,.8);
z-index: 100;
display: none;
top: 0;
left: 0;
}
.reveal-modal {
visibility: hidden;
top: 100px;
left: 50%;
margin-left: -300px;
width: 520px;
background: #eee;
position: fixed;
z-index: 101;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
-box-shadow: 0 0 10px rgba(0,0,0,.4);
text-align:center;
padding:20px 15px 30px;
}
如何在您的網站上調用彈出窗口? – berentrom
@arifix什麼是您的彈出窗口高度? –