DIV使用position:fixed时让其居中显示
今天在做一个弹出层,用于注册登录,使用DIV标签,ID设为sign。 其属性如下: #sign { position: fixed; z-index: 9999; top: 20px; left: 50%; width: 400px; height:300px; margin-left: -200px; background:#333; }
2020-10-21 09:36 阅读(2698)