position: absolute; margin: 0 auto;//必须在left和margin-left前 width: 100px;//例如 left: 50%; margin-left: -50px;