最終更新:2017-12-30 (土) 18:34:56 (2302d)  

CSS/単位
Top / CSS / 単位

相対単位

  • em? - 適用要素のfont-size(フォントサイズ)を「1」としたその倍率
  • ex - 適用要素の英小文字「x」1文字の高さ(x-height)を「1」としたその倍率
  • px? - ピクセル数
  • ch?
  • rem - relative to font-size of the root element
  • vw - Relative to 1% of the width of the viewport*
  • vh - Relative to 1% of the height of the viewport*
  • vmin? - Relative to 1% of viewport's* smaller dimension
  • vmax? - Relative to 1% of viewport's* larger dimension
  • %

絶対単位

  • cm? - センチ
  • mm - ミリ
  • in - インチ 1in=2.54cm
  • pt? - ポイント 1pt=1/72in
  • pc? - パイカ 1pc=12pt
  • px?