1
有誰知道我怎麼能得到一個Twitter Bootstrap模式順利地從瀏覽器窗口的頂部滑入位置而不是快速淡入?Twitter Bootstrap模態幻燈片
我一直在尋找this link,但似乎無法看到如何實現滑入式trasition而不是淡入淡出。
在此先感謝您提供的任何幫助。
我此刻的下面的CSS:
.modal-backdrop.fade {
opacity: 0;
}
.modal-backdrop, .modal-backdrop.fade.in {
opacity: 0.8;
}
.modal {
background-clip: padding-box;
background-color: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 6px 6px 6px 6px;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
left: 50%;
margin: -250px 0 0 -280px;
max-height: 500px;
overflow: auto;
position: fixed;
top: 50%;
width: 560px;
z-index: 1050;
}
.modal.fade {
top: -25%;
transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s;
}
.modal.fade.in {
top: 50%;
}
如果你的元素已經有了類'.fade',然後確保在初始化引導的同時不要將它附加到DOM(使用'setTimeout'推遲下一個勾號的引導程序)。 – 2013-04-25 17:15:01
謝謝西蒙,這是有道理的,我會確保這不是安裝:) – 2013-04-25 17:16:32