#f1{ width: 300px; text-align:center; } div{ margin: 10px 0px; } 转载于:https://www.cnblogs.com/liuzhuqing/archive/2010/12/09/7481264.html