CSSハンギング句読点プロパティ
例
<p>要素の最初の行の開始エッジの外側に句読点(ある場合)を配置します。
p
{
hanging-punctuation: first;
}
定義と使用法
このhanging-punctuation
プロパティは、句読点をテキストの全行の最初または最後の行ボックスの外側に配置できるかどうかを指定します。
デフォルト値: | なし |
---|---|
遺伝性の: | はい |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS3 |
JavaScript構文: | object .style.hangingPunctuation = "first" |
ブラウザのサポート
主要なブラウザはいずれも、hanging-punctuationプロパティをサポートしていません。
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
CSS構文
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
プロパティ値
Value | Description |
---|---|
none | No punctuation mark may be placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |