{"id":9469,"date":"2020-06-16T22:34:40","date_gmt":"2020-06-16T14:34:40","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9469"},"modified":"2020-06-16T22:34:40","modified_gmt":"2020-06-16T14:34:40","slug":"css-text-emphasis","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2020\/06\/css-text-emphasis\/","title":{"rendered":"\u4f7f\u7528CSS text-emphasis\u5bf9\u6587\u5b57\u8fdb\u884c\u5f3a\u8c03\u88c5\u9970"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9469\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9469<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202006-text-emphasis.png';<\/script><\/p>\n<style>pre .green{color:green;}<\/style>\n<h3>\u4e00\u3001\u5f15\u8a00<\/h3>\n<p>\u5728\u8fc7\u53bb\uff0c\u60f3\u8981\u5bf9\u67d0\u90e8\u5206\u6587\u5b57\u8fdb\u884c\u5f3a\u8c03\uff0c\u901a\u5e38\u7684\u505a\u6cd5\u662f\u52a0\u7c97\uff0c\u6216\u8005\u4f7f\u7528\u4e00\u4e2a\u9ad8\u4eae\u7684\u989c\u8272\uff0c\u73b0\u5728\u6709\u4e86\u65b0\u7684\u9009\u62e9\uff0c\u5c31\u662f\u4f7f\u7528<code>text-emphasis<\/code>\u5c5e\u6027\u8fdb\u884c\u5f3a\u8c03\u88c5\u9970\u3002<\/p>\n<p><code>text-emphasis<\/code>\u5bb6\u65cf\u603b\u5171\u67094\u4e2aCSS\u5c5e\u6027\uff0c\u5206\u522b\u662f\uff1a<\/p>\n<ul>\n<li>text-emphasis<\/li>\n<li>text-emphasis-color<\/li>\n<li>text-emphasis-style<\/li>\n<li>text-emphasis-position<\/li>\n<\/ul>\n<p>\u5176\u4e2d\uff0c<code>text-emphasis<\/code>\u662f<code>text-emphasis-color<\/code>\u548c<code>text-emphasis-style<\/code>\u8fd9\u4e24\u4e2aCSS\u5c5e\u6027\u7684\u7f29\u5199\uff0c\u6ce8\u610f\uff0c\u5e76\u4e0d\u5305\u542b<code>text-emphasis-position<\/code>\u5c5e\u6027\uff0c<code>text-emphasis-position<\/code>\u5c5e\u6027\u662f\u72ec\u7acb\u7684\u3002<\/p>\n<h3>\u4e8c\u3001\u8be6\u7ec6<\/h3>\n<h4>1. text-emphasis-color<\/h4>\n<p><code>text-emphasis-color<\/code>\u5c5e\u6027\u6ca1\u4ec0\u4e48\u597d\u8bf4\u7684\uff0c\u8868\u793a\u7528\u6765\u5f3a\u8c03\u7684\u5b57\u7b26\u7684\u989c\u8272\uff0c\u521d\u59cb\u503c\u5c31\u662f\u5f53\u524d\u6587\u5b57\u7684\u989c\u8272\u3002<\/p>\n<h4>2. text-emphasis-style<\/h4>\n<p><code>text-emphasis-style<\/code>\u8bed\u6cd5\u4e3b\u8981\u6709\u4e0b\u97623\u7c7b\uff1a<\/p>\n<pre>text-emphasis-style: none\r\ntext-emphasis-style: [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ]\r\ntext-emphasis-style: &lt;string&gt;<\/pre>\n<p>\u5176\u4e2d\uff1a<\/p>\n<p><code>text-emphasis-style:none<\/code>\u662f\u9ed8\u8ba4\u58f0\u660e\uff0c\u8868\u793a\u6ca1\u6709\u4efb\u4f55\u5f3a\u8c03\u88c5\u9970\u3002<\/p>\n<p><code>text-emphasis-style:&lt;string&gt;<\/code>\u8868\u793a\u4f7f\u7528\u4efb\u610f\u7684\u5355\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u5f3a\u8c03\u88c5\u9970\u7b26\u3002\u4f8b\u5982\u4f7f\u7528\u7231\u5fc3\u5b57\u7b26\uff1a<\/p>\n<pre>\u5b9d\u8d1d\uff0c&lt;span class=\"emphasis\"&gt;\u7231\u4f60&lt;\/span&gt;\uff0c&lt;span class=\"emphasis\"&gt;\u6bd4\u5fc3&lt;\/span&gt;\uff01<\/pre>\n<pre>.emphasis {\r\n    -webkit-text-emphasis-style: '\u2764';\r\n    text-emphasis-style: '\u2764';\r\n}<\/pre>\n<p>\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u7684\u6587\u5b57\u4e0a\u9762\u51fa\u73b0\u4e86\u7231\u5fc3\u5b57\u7b26\uff08\u56e0\u4e3a\u5e94\u7528\u4e86Emoji\u5b57\u4f53\uff0c\u6240\u4ee5\u5448\u73b0\u7684\u662fEmoji\u5b57\u7b26\uff09\u3002<\/p>\n<div class=\"figure\">\n    <img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/9-13_text-emphasis-heart.png\" loading=\"lazy\" width=\"245\" height=\"59\">\n<\/div>\n<p>\u8fd9\u91cc\u6709\u51e0\u4e2a\u7ec6\u8282\u548c\u5927\u5bb6\u8bb2\u4e0b\uff1a<\/p>\n<ol>\n<li>\u663e\u793a\u7684\u5f3a\u8c03\u88c5\u9970\u7b26\u7684\u5b57\u53f7\u662f\u4e3b\u6587\u5b57\u5185\u5bb9\u5b57\u53f7\u7684\u4e00\u534a\uff0c\u4f8b\u5982\u5047\u8bbe\u6587\u5b57\u662f<code>16px<\/code>\u5927\u5c0f\uff0c\u5219\u4e0a\u65b9\u7684\u5f3a\u8c03\u5b57\u7b26\u7684\u5927\u5c0f\u5219\u662f<code>8px<\/code>\u3002\u56e0\u6b64\uff0c\u5982\u679c\u6587\u5b57\u5b57\u53f7\u4e0d\u662f\u5f88\u5927\u7684\u65f6\u5019\uff0c\u5c3d\u91cf\u4e0d\u8981\u4f7f\u7528\u9020\u578b\u590d\u6742\uff0c\u5b57\u7b26\u533a\u57df\u8f83\u5c0f\u7684\u5b57\u7b26\uff0c\u4f8b\u5982\u661f\u53f7\u201c*\u201d\uff0c\u4e95\u53f7\u201c#\u201d\u7b49\uff0c\u56e0\u4e3a\u5728\u666e\u901a\u7684\u663e\u793a\u8bbe\u5907\u4e2d\u4f1a\u7f29\u6210\u4e00\u56e2\uff0c\u7528\u6237\u5b8c\u5168\u770b\u4e0d\u51fa\u6765\u662f\u4ec0\u4e48\u5b57\u7b26\u3002<\/li>\n<li>\u5982\u679c\u884c\u9ad8\u4e0d\u662f\u5f88\u9ad8\uff0c\u5219\u5f3a\u8c03\u88c5\u9970\u7b26\u4f1a\u81ea\u52a8\u589e\u52a0\u5f53\u524d\u8fd9\u4e00\u884c\u6240\u5360\u636e\u7684\u9ad8\u5ea6\u3002<\/li>\n<li>\u5f3a\u8c03\u88c5\u9970\u7b26\u548c\u6b63\u6587\u4e4b\u95f4\u7684\u8ddd\u79bb\u662f\u65e0\u6cd5\u901a\u8fc7\u8bbe\u7f6e\u884c\u9ad8\u7b49\u5c5e\u6027\u8fdb\u884c\u8c03\u8282\u7684\uff0c\u8ddd\u79bb\u7684\u5927\u5c0f\u4e3b\u8981\u7531\u5b57\u4f53\u51b3\u5b9a\u3002<\/li>\n<li>\u5982\u679c\u6307\u5b9a\u7684\u662f\u591a\u4e2a\u5b57\u7b26\uff0c\u5219\u53ea\u4f1a\u4f7f\u7528\u7b2c1\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u5f3a\u8c03\u88c5\u9970\u7b26\u3002\u4f8b\u5982\uff1a\n<pre>text-emphasis-style: 'CSS\u65b0\u4e16\u754c';<\/pre>\n<p>\u7b49\u540c\u4e8e\uff1a<\/p>\n<pre>text-emphasis-style: 'C';<\/pre>\n<\/li>\n<\/ol>\n<p>\u6700\u540e\u770b\u4e0b<code>text-emphasis-style<\/code>\u5185\u7f6e\u7684\u51e0\u4e2a\u88c5\u9970\u7b26\u6548\u679c\uff0c\u4ed6\u4eec\u662f<code>dot<\/code>\uff08\u70b9\uff09\u3001<code>circle<\/code>\uff08\u5706\uff09\u3001<code>double-circle<\/code>\uff08\u53cc\u5c42\u5706\uff09\u3001<code>triangle<\/code>\uff08\u4e09\u89d2\uff09\u3001<code>sesame<\/code>\uff08\u829d\u9ebb\u70b9\uff09\u3002<\/p>\n<p>\u6bcf\u4e00\u79cd\u88c5\u9970\u7b26\u90fd\u6709\u5b9e\u5fc3\u548c\u7a7a\u5fc3\u4e24\u79cd\u5b57\u7b26\uff0c\u662f\u901a\u8fc7<code>filled<\/code>\u548c<code>open<\/code>\u8fd9\u4e24\u4e2a\u5173\u952e\u5b57\u51b3\u5b9a\u7684\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre><span class=\"green\">\/* \u5b9e\u5fc3\u7684\u5706\u70b9 *\/<\/span>\r\ntext-emphasis: filled dot;\r\n<span class=\"green\">\/* \u7a7a\u5fc3\u7684\u5706\u70b9 *\/<\/span>\r\ntext-emphasis: open dot;<\/pre>\n<p>\u7531\u4e8e\u5185\u7f6e\u5b57\u7b26\u9ed8\u8ba4\u90fd\u662f\u4f7f\u7528\u5b9e\u5fc3\u7684\uff0c\u56e0\u6b64\uff0c<code>text-emphasis:filled dot<\/code>\u7684\u6548\u679c\u7b49\u540c\u4e8e<code>text-emphasis:dot<\/code>\u3002<\/p>\n<p>\u5982\u679c<code>text-emphasis-style<\/code>\u7684\u5c5e\u6027\u503c\u53ea\u6709<code>filled<\/code>\u6216<code>open<\/code>\uff0c\u5219\u4f1a\u91c7\u7528<code>dot<\/code>\uff08\u70b9\uff09\u4f5c\u4e3a\u5f3a\u8c03\u88c5\u9970\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><span class=\"green\">\/* \u7b49\u540c\u4e8etext-emphasis: filled dot *\/<\/span>\r\ntext-emphasis: filled;\r\n<span class=\"green\">\/* \u7b49\u540c\u4e8etext-emphasis: open dot *\/<\/span>\r\ntext-emphasis: open;<\/pre>\n<p>\u81f3\u4e8e\u5404\u4e2a\u88c5\u9970\u7b26\u5177\u4f53\u7684\u6548\u679c\uff0c\u6211<span class=\"hidden\">\uff08\u5f20\u946b\u65ed\uff09<\/span>\u7279\u610f\u5236\u4f5c\u4e86\u4e00\u4e2a\u8868\u65b9\u4fbf\u5927\u5bb6\u5e38\u770b\uff0c\u8be6\u89c1\u4e0b\u8868\u3002<\/p>\n<table border=\"0\" width=\"100%\" class=\"params_table\" cellspacing=\"1\">\n<caption><small>\u5f20\u946b\u65ed\u6574\u7406\u7684\u5185\u7f6e\u88c5\u9970\u7b26\u7684\u6548\u679c\u793a\u610f\u8868<\/small><\/caption>\n<thead>\n<tr>\n<th>\u5173\u952e\u5b57\u503c<\/th>\n<th>filled<\/th>\n<th>open<\/th>\n<th>\u5fae\u8f6f\u96c5\u9ed1\u6548\u679c<\/th>\n<th>\u5b8b\u4f53\u6548\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>dot<\/code><\/td>\n<td><code>'\u2022' (U+2022)<\/code><\/td>\n<td><code>'\u25e6' (U+25E6)<\/code><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/dot-filled-open.png\" width=\"79\" height=\"31\"><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/dot-filled-open2.png\" width=\"77\" height=\"26\"><\/td>\n<\/tr>\n<tr>\n<td><code>circle<\/code><\/td>\n<td><code>'\u25cf' (U+25CF)<\/code><\/td>\n<td><code>'\u25cb' (U+25CB)<\/code><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/circle-filled-open.png\" width=\"79\" height=\"31\"><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/circle-filled-open2.png\" width=\"77\" height=\"28\"><\/td>\n<\/tr>\n<tr>\n<td><code>double-circle<\/code><\/td>\n<td><code>'\u25c9' (U+25C9)<\/code><\/td>\n<td><code>'\u25ce' (U+25CE)<\/code><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/double-circle-filled-open.png\" width=\"79\" height=\"32\"><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/double-circle-filled-open2.png\" width=\"77\" height=\"28\"><\/td>\n<\/tr>\n<tr>\n<td><code>triangle<\/code><\/td>\n<td><code>'\u25b2' (U+25B2)<\/code><\/td>\n<td><code>'\u25b3' (U+25B3)<\/code><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/tri-filled-open.png\" width=\"79\" height=\"33\"><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/tri-filled-open2.png\" width=\"77\" height=\"28\"><\/td>\n<\/tr>\n<tr>\n<td><code>sesame<\/code><\/td>\n<td><code>'\ufe45' (U+FE45)<\/code><\/td>\n<td><code>'\ufe46' (U+FE46)<\/code><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/sesame-filled-open.png\" width=\"79\" height=\"31\"><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/sesame-filled-open2.png\" width=\"77\" height=\"26\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5404\u4e2a\u5f3a\u8c03\u88c5\u9970\u7b26\u7684\u5b57\u5f62\u5927\u5c0f\u53d7\u5b57\u4f53\u5f71\u54cd\u8f83\u5927\uff0c\u5927\u5bb6\u6839\u636e\u5b9e\u9645\u573a\u666f\u9009\u62e9\u4f7f\u7528\u5408\u9002\u7684\u5f3a\u8c03\u88c5\u9970\u7b26\u3002<\/p>\n<h4>3. text-emphasis-position<\/h4>\n<p><code>text-emphasis-position<\/code>\u5c5e\u6027\u7528\u6765\u6307\u5b9a\u5f3a\u8c03\u88c5\u9970\u7b26\u7684\u4f4d\u7f6e\uff0c\u9ed8\u8ba4\u4f4d\u7f6e\u662f\u5728\u6b63\u6587\u7684\u4e0a\u65b9\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u5f3a\u8c03\u88c5\u9970\u7b26\u5728\u6b63\u6587\u7684\u4e0b\u65b9\uff0c\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5782\u76f4\u6392\u7248\u7684\u65f6\u5019\u5f3a\u8c03\u88c5\u9970\u7b26\u662f\u5de6\u4fa7\u8fd8\u662f\u53f3\u4fa7\u3002<\/p>\n<p>\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>text-emphasis-position: [ over | under ] && [ right | left ]<\/pre>\n<p>\u4f7f\u7528\u793a\u610f\uff1a<\/p>\n<pre>text-emphasis-position: over left;\r\ntext-emphasis-position: under right;\r\ntext-emphasis-position: under left;\r\n\r\ntext-emphasis-position: left over;\r\ntext-emphasis-position: right under;\r\ntext-emphasis-position: left under;<\/pre>\n<p><code>text-emphasis-position<\/code>\u7684\u521d\u59cb\u503c\u662f<code>over right<\/code>\u3002<code>right<\/code>\u5b9a\u4f4d\u51fa\u73b0\u5728\u6587\u5b57\u5782\u76f4\u6392\u7248\u7684\u65f6\u5019\uff0c\u4f8b\u5982\u8bbe\u7f6e<code>writing-mode:vertical-rl<\/code>\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u770b\u5230\u5f3a\u8c03\u88c5\u9970\u7b26\u5728\u53f3\u4fa7\u4e86\uff0c\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<div class=\"figure\">\n    <img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/9-14_text-emphasis-right.png\" loading=\"lazy\" width=\"73\" height=\"170\">\n<\/div>\n<p><code>text-emphasis-position<\/code>\u5c5e\u6027\u5728\u4e2d\u6587\u573a\u666f\u4e0b\u8fd8\u662f\u5f88\u5e38\u7528\u7684\uff0c\u56e0\u4e3a\uff0c\u4e2d\u6587\u4e60\u60ef\u5728\u5e95\u90e8\u8bbe\u7f6e\u8868\u793a\u5f3a\u8c03\u7684\u5b57\u7b26\uff0c\u6709\u522b\u4e8e\u65e5\u6587\u3001\u97e9\u6587\u7b49\u4e1c\u4e9a\u8bed\u8a00\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u4e2d\u6587\u5185\u5bb9\u7684\u5f3a\u8c03\uff0c\u9664\u4e86\u8bbe\u7f6e\u5f3a\u8c03\u88c5\u9970\u7b26\u4ee5\u5916\uff0c\u8fd8\u8981\u8bbe\u7f6e\u5f3a\u8c03\u88c5\u9970\u7b26\u7684\u4f4d\u7f6e\u4e3a\u5e95\u90e8\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>.chinese-emphasis {\r\n    -webkit-text-emphasis: dot;\r\n    text-emphasis: dot;\r\n    -webkit-text-emphasis-position: under right;\r\n    text-emphasis-position: under right;\r\n}<\/pre>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5c0f\u7ec6\u8282\uff0c\u5728Chrome\u6d4f\u89c8\u5668\u4e0b\uff0c<code>text-emphasis-position<\/code>\u5c5e\u6027\u53ef\u4ee5\u53ea\u8bbe\u7f6e\u5782\u76f4\u65b9\u5411\u7684\u65b9\u4f4d\u503c\uff0c\u65e0\u9700\u8bbe\u7f6e\u6c34\u5e73\u65b9\u5411\u7684\u65b9\u4f4d\u503c\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\u8bed\u6cd5\u5728Chrome\u6d4f\u89c8\u5668\u4e0b\u4e5f\u662f\u53ef\u4ee5\u8bc6\u522b\u7684\uff1a<\/p>\n<pre>-webkit-text-emphasis-position: under;<\/pre>\n<p>\u4f46\u662f\uff0c\u8bf7\u6ce8\u610f\uff0cChrome\u6d4f\u89c8\u5668\u7684\u8fd9\u4e2a\u505a\u6cd5\u5176\u5b9e\u662f\u4e0d\u5bf9\u7684\uff0c\u662f\u4e2a\u89c4\u8303\u7684\u63cf\u8ff0\u4e0d\u76f8\u7b26\u5408\u7684\uff0c\u89c4\u8303\u4e2d\u8981\u6c42<code>text-emphasis-position<\/code>\u5c5e\u6027\u503c\u9700\u8981\u540c\u65f6\u5305\u542b\u6c34\u5e73\u65b9\u4f4d\u548c\u5782\u76f4\u65b9\u4f4d\uff0c\u56e0\u6b64\uff0c\u5efa\u8bae\u5927\u5bb6\u8fd8\u662f2\u4e2a\u503c\u540c\u65f6\u8bbe\u7f6e\u3002<\/p>\n<pre>-webkit-text-emphasis-position: under right;<\/pre>\n<h4>4. text-emphasis<\/h4>\n<p><code>text-emphasis<\/code>\u662f<code>text-emphasis-color<\/code>\u548c<code>text-emphasis-style<\/code>\u8fd9\u4e24\u4e2aCSS\u5c5e\u6027\u7684\u7f29\u5199\uff0c\u4f7f\u7528\u793a\u610f\uff1a<\/p>\n<pre>text-emphasis: circle deepskyblue;<\/pre>\n<p>\u5c31\u8bed\u6cd5\u548c\u8bed\u4e49\u800c\u8a00\uff0c<code>text-emphasis<\/code>\u5c5e\u6027\u6bd4\u8f83\u5355\u7eaf\uff0c\u6ca1\u6709\u9690\u85cf\u7ec6\u8282\u3002<\/p>\n<p>\u552f\u4e00\u503c\u5f97\u4e00\u63d0\u7684\u662f<code>text-emphasis<\/code>\u662f\u4e00\u4e2a\u7ee7\u627f\u5c5e\u6027\uff0c\u4e5f\u5c31\u662f\u7956\u5148\u5143\u7d20\u8bbe\u7f6e\u4e86\u5f3a\u8c03\u6548\u679c\uff0c\u5b50\u5143\u7d20\u4e5f\u4f1a\u5e94\u7528\u3002\u8fd9\u4e00\u70b9\u5c31\u548c<code>text-decoration<\/code>\u5c5e\u6027\u5b8c\u5168\u4e0d\u540c\uff0c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2015\/06\/know-css-text-decoration-style-color-ship\/\"><code>text-decoration<\/code>\u5c5e\u6027<\/a>\u662f\u6ca1\u6709\u7ee7\u627f\u6027\u7684\u3002<\/p>\n<p>\u53e6\u5916\u4e00\u70b9\u5c0f\u533a\u522b\u662f\uff0c<code>text-emphasis<\/code>\u5c5e\u6027\u4f1a\u5f71\u54cd\u6587\u5b57\u5360\u636e\u7684\u9ad8\u5ea6\uff0c\u800c<code>text-decoration<\/code>\u5c5e\u6027\u4e0d\u4f1a\u3002<\/p>\n<h3>\u4e09\u3001\u5c0f\u7ed3<\/h3>\n<p>\u6211\u56de\u987e\u4e86\u4e0b\u6211\u6240\u7ecf\u5386\u7684\u8fd9\u4e9b\u9879\u76ee\uff0c\u4f7f\u7528<code>text-emphasis<\/code>\u5c5e\u6027\u7684\u5730\u65b9\uff0c\u4e5f\u5c31\u662fJS API\u6216\u8005\u6280\u672f\u6587\u6863\u4e00\u4e9b\u9700\u8981\u5f3a\u8c03\u7684\u6587\u672c\u4e4b\u5904\u4e86\uff0c\u8fd8\u6709\u516c\u53f8\u4ea7\u54c1\u5bf9\u5916\u7684\u5e2e\u52a9\u6587\u6863\u4e4b\u7c7b\u3002\u800c\u666e\u901a\u7684\u5185\u5bb9\u5c55\u793a\uff0c\u4f3c\u4e4e\u6ca1\u6709\u8fd9\u6837\u7684\u9700\u6c42\u3002<\/p>\n<p>\u603b\u4e4b\uff0cCSS <code>text-emphasis<\/code>\u5c5e\u6027\u7ed9\u4e86\u6211\u4eec\u6587\u5b57\u5185\u5bb9\u5f3a\u8c03\u4e00\u4e2a\u65b0\u7684\u9009\u62e9\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5c55\u793a\u4e0b<code>text-emphasis<\/code>\u5c5e\u6027\u7684\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/2020-06-16_222119.png\" width=\"745\" height=\"297\" alt=\"text-emphasis\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u5185\u5bb9\uff0c\u611f\u8c22\u9605\u8bfb\uff0c\u6b22\u8fce\u5206\u4eab\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f609.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9469\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9469<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202006\/text-emphasis-cover.png\" width=\"160\" height=\"106\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>\u8fc7\u53bb\u60f3\u8981\u5f3a\u8c03\u6587\u5b57\uff0c\u505a\u6cd5\u662f\u52a0\u7c97\uff0c\u6216\u8005\u4f7f\u7528\u9ad8\u4eae\u989c\u8272\uff0c\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528<code>text-emphasis<\/code>\u5c5e\u6027\u8fdb\u884c\u5f3a\u8c03\u88c5\u9970\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u4efb\u610f\u7684\u88c5\u9970\u5b57\u7b26\uff0c\u5f88\u5b9e\u7528\u7684\u4e00\u4e2aCSS\u65b0\u5c5e\u6027\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1271,996,1625,1626,1628,1627,1046],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9469"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=9469"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9469\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=9469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=9469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=9469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}