text-emphasis-style 属性的使用:
p.ex1 {
text-emphasis-style: filled;
}
p.ex2 {
text-emphasis-style: open;
}
p.ex3 {
text-emphasis-style: double-circle;
}
p.ex4 {
text-emphasis-style: "#";
}
亲自试一试 »
这个text-emphasis-style
属性设置强调标记的样式。
提示:强调标记的大小约为字体大小的50%。
默认值: | 没有任何 |
---|---|
遗传: | 是的 |
版本: | CSS3 |
JavaScript 语法: | 对象.style.textEmphasisStyle="triangle" |
表中的数字指定完全支持该属性的第一个浏览器版本。
Property | |||||
---|---|---|---|---|---|
text-emphasis-style | 99.0 | 99.0 | 46.0 | 7.0 | 85.0 |
text-emphasis-style: none|filled|open|dot|circle|double-circle|triangle|sesame|
string|
color|initial|inherit;
Value | Description | |
---|---|---|
none | No emphasis marks are applied | Demo ❯ |
filled | The emphasis marks are filled with a solid color | Demo ❯ |
open | The emphasis marks are hollow | Demo ❯ |
dot | The emphasis marks are small circles | Demo ❯ |
circle | The emphasis marks are circles | Demo ❯ |
double-circle | The emphasis marks are double circles | Demo ❯ |
triangle | The emphasis marks are triangles | Demo ❯ |
sesame | The emphasis marks are sesames | Demo ❯ |
string | The emphasis marks are the given string (one character) | Demo ❯ |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!