ip访问网站和localhost访问网站中top使用 对于相对定位,使用margin-top不用简单使用top。 top在localhost中能正常显示,在ip访问时会出现多余空白。 margin-top不管是localhost中还是ip中都能正常显示。