CSS hanging-punctuation 屬性
- 上一頁 grid-template-rows
- 下一頁 height
定義和用法
hanging-punctuation 屬性規定把標點符號放在文本整行的開頭還是結尾的行框之外。
實例
在 p 元素首行的開始邊緣之外放置一個標點符號:
p { hanging-punctuation:first; }
CSS 語法
hanging-punctuation: none|first|last|allow-end|force-end;
屬性值
值 | 描述 |
---|---|
none | 不在文本整行的開頭還是結尾的行框之外放置標簽符號。 |
first | 標點附著在首行開始邊緣之外。 |
last | 標點附著在首行結尾邊緣之外。 |
allow-end | |
force-end |
技術細節
默認值: | none |
---|---|
繼承性: | yes |
版本: | CSS3 |
JavaScript 語法: | object.style.hangingPunctuation="first" |
瀏覽器支持
表格中的數字注明了完全支持該屬性的首個瀏覽器版本。
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
不支持 | 不支持 | 不支持 | 10+ | 不支持 |
- 上一頁 grid-template-rows
- 下一頁 height