CSS3 hanging-punctuation 屬性
實(shí)例
在 p 元素首行的開始邊緣之外放置一個(gè)標(biāo)點(diǎn)符號(hào):
p
{
hanging-punctuation:first;
}
瀏覽器支持
目前主流瀏覽器都不支持 hanging-punctuation 屬性。
定義和用法
hanging-punctuation 屬性規(guī)定把標(biāo)點(diǎn)符號(hào)放在文本整行的開頭還是結(jié)尾的行框之外。
| 默認(rèn)值: | none |
|---|---|
| 繼承性: | yes |
| 版本: | CSS3 |
| JavaScript 語法: | object.style.hangingPunctuation="first" |
語法
hanging-punctuation: none|first|last|allow-end|force-end;
| 值 | 描述 |
|---|---|
| none | 不在文本整行的開頭還是結(jié)尾的行框之外放置標(biāo)簽符號(hào)。 |
| first | 標(biāo)點(diǎn)附著在首行開始邊緣之外。 |
| last | 標(biāo)點(diǎn)附著在首行結(jié)尾邊緣之外。 |
| allow-end | |
| force-end |