模态窗口上的CSS没有对齐

时间:2012-12-13 07:36:08

标签: css modal-dialog

请参阅:http://www.myproduction-1.info/jquery%20tools%20org%20overlay/blue.html

1-我现在确定如何让关闭按钮成为一个链接。

3-背景图片的左侧部分隐藏,我看了每个可能的选择器来改变它,但没有去。

完成2-整个模态窗口应在视口中居中。

任何提示都会非常感激!

1 个答案:

答案 0 :(得分:0)

使用此代码使模态窗口居中对齐。

.modal {
    background-color: #FBFFFF;
    display: none;
    width: 755px;
    height: 535px;
    text-align: left;
    opacity: 0.8;
    margin: -267px 0 0 -377px;
    top: 50%!important;
    left: 50%!important;
}