在日常开发中,有一些场景需要将p标签的上间隔取消掉,一般在css中添加样式。可以根据自己的需求进行修改。 p{ -webkit-margin-before:0; -webkit-margin-after:0; }