div{ position:fixed; width:1200px; margin:0 auto; top:0; bottom:0; left:0; right:0; } 转载于:https://www.cnblogs.com/yanaweb/p/5715607.html