跳到主要内容

CSS

  • CSS
  • Less
  • PostCSS

分类

  • 样式表
    • 外联样式表 <link>
    • 行内样式 style
    • 内联样式 <style>
  • 基础
    • 语法
      • var()
      • calc()
    • 盒模型
      • content
        • width
        • height
      • padding
      • border
      • margin
      • box-sizing
        • border-box
        • content-box
      • BFC
      • IFC
    • 单位
      • rem
      • em
      • transparent
    • 选择器
      • !important
      • id
      • class
      • 伪类
        • :hover
        • :active
        • :focus
        • :disabled
        • :selected
      • []属性
      • 选择器优先级
    • 伪元素
      • ::before
      • ::after
  • 布局
    • Float
    • Position
    • Table
    • Flex
      • Flexbox
    • Grid
  • 响应式设计
    • @media
    • min-*
    • max-*
  • 装饰
    • 圆角
      • border-radius
    • 阴影
      • text-shadow
      • box-shadow
    • 背景
      • background-color
      • background-image
    • 图片
    • 渐变
      • liner-
    • 透明度
      • opacity
    • 颜色
      • rgba
    • 混合模式
  • 主题化
    • :root
    • var()
  • 动画效果
    • Transition 过渡
      • transition
    • Transform 变换
      • transform
    • Animation 动画
      • animation
      • @keyframes
  • CSS 架构
    • 预处理
      • Less
      • PostCSS
    • 样式隔离
      • @scope
      • :global
      • CSS Modules
    • CSS-in-JS
      • styled-components
    • CSS 优化
      • UnCSS