这样的话, 就在PC端用 100%, 手机端就用实际宽度来定义, 这样就解决了。 .enfooter { width:100%; } @media screen and (max-width: 1000px) { .enfooter { width:1200px; } }