Skip to content

边距类

用于设置元素的内边距和外边距

  • p-: 设置元素的内边距,如:p-4表示内边距为 1rem
  • m-: 设置元素的外边距,如:m-2表示外边距为 0.5rem

对于上下左右边距的单独设置,上下用y表示,左右用x表示,如设置上下内边距为py-2

Released under the MIT License.