CSS3 hanging-punctuation 属性 | CSS3教程:CSS3 文本效果

返回到:CSS3 文本效果 | CSS3教程

属性定义及使用说明

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

浏览器支持

主流浏览器都不支持。

实例

p元素的第一行开始边缘放置一个标点符号:

p{
  hanging-punctuation:first;
}

作者:terry,如若转载,请注明出处:https://www.web176.com/css3textpro/5168.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2022年1月17日 下午5:21
下一篇 2022年1月17日 下午5:48

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注