Latest web development tutorials

CSS3 hanging-punctuation 屬性

實例

p元素的第一行開始邊緣放置一個標點符號:

p
{
hanging-punctuation:first;
}

瀏覽器支持

表格中的數字表示支持該屬性的第一個瀏覽器版本號。

屬性
hanging-punctuation 不支持 不支持 不支持 不支持 不支持

目前主流瀏覽器都不支持hanging-punctuation 屬性。


屬性定義及使用說明

hanging-punctuation屬性指定一個標點符號是否會在啟動或在結束時文本行框以外。

默認值: none
繼承: yes
版本: CSS3
JavaScript 語法: object.style.hangingPunctuation="first"


語法

hanging-punctuation: none|first|last|allow-end|force-end;

描述
none 不在文本整行的開頭還是結尾的行框之外放置標籤符號。
first 標點附著在首行開始邊緣之外。
last 標點附著在首行結尾邊緣之外。
allow-end
force-end