元素定义了position:fixed;后怎么居中时间:2022-05-22 13:33:59 div{ position:fixed; width:1200px; margin:0 auto; top:0; bottom:0; left:0; right:0; }