垂直居中 只要让字高 等于 行高即可。 水平居中可以用 align :center 下面css代码 供参考 li{ height : 20px; line-height : 20px; align : center; }