Skip to content

边框和轮廓类

边框类用于设置元素的边框样式

  • border-{color}:设置边框颜色,例如 border-red-500 表示使用红色边框

  • border-{size}:设置边框大小,例如 border-2 表示边框宽度为 2 像素

  • border-{side}:设置边框位置,例如 border-l 表示只在元素左侧添加边框

    border-t, border-r, border-b, border-l: 设置元素的上、右、下、左边框

  • rounded-{size}:设置圆角大小,例如 rounded-full 表示使用完全圆角

Released under the MIT License.