手册目录
CSS教程手册
CSS高级
CSS基础教程
CSS中级教程
CSS3高级教程
CSS响应式设计
CSS实例
text-emphasis-style 属性设置强调标记的样式。
提示:强调标记的大小约为字体大小的 50%。
使用 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: none|filled|open|dot|circle|double-circle|triangle|sesame|string|initial|inherit;
| 值 | 描述 |
|---|---|
| none | 不应用强调标记。 |
| filled | 强调标记填充为实心颜色。 |
| open | 强调标记为空心。 |
| dot | 强调标记为小圆点。 |
| circle | 强调标记为圆形。 |
| double-circle | 强调标记为双圆形。 |
| triangle | 强调标记为三角形。 |
| sesame | 强调标记为芝麻形(即小点簇)。 |
| string | 强调标记为给定的字符串(一个字符)。 |
| initial | 将此属性设置为其默认值。参阅 initial。 |
| inherit | 从其父元素继承此属性。参阅 inherit。 |
| 默认值: | none |
|---|---|
| 继承性: | yes |
| 版本: | CSS3 |
| JavaScript 语法: | object.style.textEmphasisStyle="triangle" |
表格中的数字表示首个完全支持该属性的浏览器版本。
| Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|
| 99.0 | 99.0 | 46.0 | 7.0 | 85.0 |
相关视频
科技资讯
24小时阅读榜
1
2
3
4
5
6
7
8
9
10
精品课程
共5课时 | 17.4万人学习
共49课时 | 78.2万人学习
共29课时 | 62.5万人学习
共25课时 | 39.7万人学习
共43课时 | 73.8万人学习