📌  相关文章
📜  如何使模态保持在屏幕中心 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:45.186000             🧑  作者: Mango

代码示例1
//add a  onclick function to your modal button

//add below function to your scripts
function modalCenter() {
        $('#signUpModal').css({
            'display': 'flex',
            'justify-content': 'center',
            'align-items': 'center'
        })
    }