Movatterモバイル変換


[0]ホーム

URL:


  1. 開発者向けのウェブ技術
  2. CSS
  3. リファレンス
  4. プロパティ
  5. -webkit-text-stroke-width

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。

View in EnglishAlways switch to English

-webkit-text-stroke-width

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年4月.

-webkit-text-stroke-widthCSS のプロパティで、テキストの線の太さを指定します。

構文

css
/* キーワード値 */-webkit-text-stroke-width: thin;-webkit-text-stroke-width: medium;-webkit-text-stroke-width: thick;/* <length> 値 */-webkit-text-stroke-width: 2px;-webkit-text-stroke-width: 0.1em;-webkit-text-stroke-width: 1mm;-webkit-text-stroke-width: 5pt;/* グローバル値 */-webkit-text-stroke-width: inherit;-webkit-text-stroke-width: initial;-webkit-text-stroke-width: unset;

<line-width>

線の太さ。

公式定義

初期値0
適用対象すべての要素
継承あり
計算値絶対的な長さ
アニメーションの種類離散値

形式文法

-webkit-text-stroke-width =
<line-width>

<line-width> =
<length [0,∞]>|
thin|
medium|
thick

線の幅を変更

CSS

css
p {  margin: 0;  font-size: 4em;  -webkit-text-stroke-color: red;}#thin {  -webkit-text-stroke-width: thin;}#medium {  -webkit-text-stroke-width: 3px;}#thick {  -webkit-text-stroke-width: 1.5mm;}

HTML

html
<p>Thin stroke</p><p>Medium stroke</p><p>Thick stroke</p>

結果

仕様書

Specification
Compatibility
# the-webkit-text-stroke-width

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp