{"id":4831,"date":"2015-06-04T01:51:12","date_gmt":"2015-06-03T17:51:12","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=4831"},"modified":"2019-02-09T23:37:49","modified_gmt":"2019-02-09T15:37:49","slug":"know-css-text-decoration-style-color-ship","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2015\/06\/know-css-text-decoration-style-color-ship\/","title":{"rendered":"\u4e86\u89e3CSS3 text-decoration\u6ce2\u6d6a\u7ebf\u7b49\u65b0\u7279\u6027"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/\">https:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=4831\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=4831<\/a><\/p>\n<h3>\u4e00\u3001\u652f\u6301\u826f\u4e45\u7684text-decoration-line<\/h3>\n<p><code>text-decoration<\/code>\u987e\u540d\u601d\u610f\u5c31\u662f\u201c\u6587\u5b57\u88c5\u9970\u201d\u7684\u610f\u601d\uff0c\u6211\u4eec\u5e73\u5e38\u4f7f\u7528\u591a\u7684\u5c31\u662f\u94fe\u63a5\u65e0\u5212\u7ebf\u6216\u8005hover\u4e0b\u5212\u7ebf\uff0c\u4e5f\u5c31\u662f\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>a { text-decoration: none; }\r\na:hover { text-decoration: underline; }<\/pre>\n<\/div>\n<p>\u6216\u8005\u5c31\u662f\u56e2\u8d2d\u7f51\u7ad9\u91cc\u9762\uff0c\u539f\u4ef7\u00a5100, \u8fd9\u4e2a<del datetime=\"2015-06-03T15:18:12+00:00\">\u00a5100<\/del>\u9700\u8981\u88ab\u5220\u6389\u72b6\uff0c\u4e8e\u662f\uff0c\u5c31\u76f4\u63a5\u4f7f\u7528<code>&lt;del&gt;<\/code>\u6807\u7b7e\uff0c\u6216\u8005\u4f7f\u7528span\u6807\u7b7e\uff0c\u7136\u540e\u5982\u4e0b<code>text-decoration<\/code>\u503c\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>span { text-decoration: line-through }<\/pre>\n<\/div>\n<p>\u5f53\u7136\uff0c<code>text-decoration<\/code>\u5728CSS2.1\u65f6\u4ee3\uff0c\u652f\u6301\u7684\u5c5e\u6027\u503c\u4e0d\u4ec5\u4ec5\u4e0a\u9762\u51fa\u73b0\u7684\u8fd9\u51e0\u4e2a\uff0c\u8fd8\u6709\u4e0e<code>underline<\/code>\u5bf9\u5e94\u7684<code>overline<\/code>, \u8868\u793a\u4e0a\u5212\u7ebf\uff0c\u867d\u7136\u517c\u5bb9\u6027\u4e0d\u9519\uff0c\u4f46\u662f\u4f3c\u4e4e\u6ca1\u6709\u4ec0\u4e48\u5375\u7528\uff0c\u9119\u4eba\u4e0d\u624d\uff0c\u5199CSS\u8fd9\u4e48\u591a\u5e74\u4e00\u6b21\u90fd\u6ca1\u6709\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\u8fc7<code>overline<\/code>.<\/p>\n<p>\u7136\u540e\uff0c\u8fd8\u6709\u4e00\u4e2a<code>blink<\/code>, \u5c31\u662f<code>text-decoration:blink<\/code>, \u770b\u540d\u5b57\u4f3c\u4e4e\u5f88\u9738\u6c14\uff0c\u4e0d\u8fc7\u6211\u4eec\u597d\u50cf\u5f88\u5c11\u89c1\u5230\uff0c\u66f4\u522b\u8bf4\u4f7f\u7528\u4e86\uff0c\u4e3a\u5565\u5b50\uff1f<\/p>\n<p>\u9996\u5148\uff0c\u8fd9\u4e2a<code>text-decoration<\/code>\u7684\u88c5\u9970\u6548\u679c\u662f\uff0c\u95ea\u70c1\u3002\u7531\u4e8e\u9119\u4eba\u6ca1\u89c1\u8fc7\uff0c\u4e5f\u4e0d\u597d\u63cf\u8ff0\u5177\u4f53\u662f\u4e2a\u4ec0\u4e48\u6548\u679c\u3002\u4e3a\u4ec0\u4e48\u6211\u6ca1\u6709\u89c1\u8fc7\u5462\uff01\u6211\u67e5\u4e86\u4e0b\u8d44\u6599\uff0c\u539f\u6765\u867d\u7136\u6b64\u5c5e\u6027\u503c\u8eba\u5728\u89c4\u8303\u91cc\uff0c\u4f46\u662f\uff0c\u6728\u6709\u6d4f\u89c8\u5668\u652f\u6301\u8fd9\u4e2a\u6548\u679c\u3002\u54e6\uff0c\u62b1\u6b49\uff0cFireFox\u66fe\u7ecf\u662f\u652f\u6301\u7684\uff0c\u540e\u6765\u53ef\u80fd\u7834\u574f\u4e86\u5e9c\u91cc\u7684\u89c4\u77e9\uff0c\u4e5f\u5c31\u4e56\u4e56\u4e0d\u652f\u6301\u4e86\u3002\u4e8e\u662f\uff0c\u73b0\u5728\uff0c\u5927\u5bb6\u5f88\u96be\u89c1\u5230<code>text-decoration:blink<\/code>\u7a76\u7adf\u662f\u4e2a\u4ec0\u4e48\u6548\u679c\u4e86\u3002<\/p>\n<p><code>text-decoration<\/code>\u662f\u652f\u6301\u591a\u503c\u7684\u3002\u6bd4\u65b9\u8bf4\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.multiple { text-decoration: underline overline; }<\/pre>\n<\/div>\n<p>\u4e0a\u6a2a\u7ebf\u548c\u4e0b\u5212\u7ebf\u540c\u65f6\u51fa\u73b0\u4e86\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u4eca\u5929\u6211\u4e00\u6d4b\u8bd5\u624d\u53d1\u73b0\uff0c\u539f\u6765<code>text-decoration<\/code>\u7684\u591a\u503c\u7279\u6027\u8fdeIE7\u6d4f\u89c8\u5668\u4e5f\u652f\u6301\uff0c\u771f\u662f\u5b66\u4e60\u4e86\uff01<\/p>\n<p><strong>\u8865\u5145\u4e8e2019-02-09<\/strong><br \/>\n\u4eca\u5929\u6d4b\u8bd5\u53d1\u73b0\uff0c\u7236\u5b50\u5143\u7d20\u540c\u65f6\u8bbe\u7f6e<code>text-decoration<\/code>\u5c5e\u6027\uff0c\u5c45\u7136\u6548\u679c\u662f\u7d2f\u52a0\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201902\/2019-02-08_185204.png\" width=\"165\" height=\"88\" alt=\"\u4e0b\u5212\u7ebf\u7c7b\u578b\u7d2f\u52a0\" class=\"alignnone size-medium\" \/><\/p>\n<hr>\n<p>\u7136\u540e\uff0c\u6211\u5c31\u7a81\u53d1\u5947\u60f3\uff0c\u8fd9\u6587\u5b57\u4e0a\u9762\u4e00\u6761\u7ebf\uff0c\u4e0b\u9762\u4e00\u6761\u7ebf\uff0c\u8981\u662f\u518d\u548c<code>border<\/code>\u4e0a\u9762\u4e00\u6761\u7ebf\u4e0b\u9762\u4e00\u6761\u7ebf\u641e\u5728\u4e00\u8d77\uff0c\u4f1a\u6709\u4ec0\u4e48\u600e\u6837\u7684\u8868\u73b0\u5462\uff1f<\/p>\n<p>\u4e8e\u662f\uff0c\u6574\u4e86\u4e2a\u6d4b\u8bd5Demo, \u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" href=\"https:\/\/www.zhangxinxu.com\/study\/201506\/text-decoration-border.html\" target=\"_blank\">text-decoration\u548cborder\u548coutline\u5173\u7cfb<\/a><\/p>\n<p>\u7ed3\u679c\u5728\u5b8b\u4f53\u4e0b\uff0cFireFox\/Chrome\u6d4f\u89c8\u5668\u4e0b\uff0c<code>text-decoration<\/code>\u7ebf\u548c<code>border<\/code>\u7ebf\u548c<code>outline<\/code>\u7ebf\uff0c\u6b63\u597d\u5bc6\u4e0d\u53ef\u5206\u7f20\u7ef5\u5728\u4e00\u8d77\uff0c1\u50cf\u7d20\u4e5f\u4e0d\u4fb5\u5360\uff0c\u5982\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-04_004716.png\" width=\"395\" height=\"203\" alt=\"\u5404\u79cd\u7ebf\u6392\u6392\u7ad9\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p>\u4f46\u662f\u5728IE\u6d4f\u89c8\u5668\u4e0b\uff0cIE7~IE11, \u6216\u8005\u6240\u6709\u6d4f\u89c8\u5668\u7684\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\u4e0b\uff0c\u4e0b\u5212\u7ebf\u548c\u8fb9\u6846\u7ebf\u662f\u6709\u8ddd\u79bb\u7684\uff0c\u5982\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-04_004920.png\" width=\"434\" height=\"235\" alt=\"IE11\u4e0b\u5b8b\u4f53\u95f4\u8ddd\" class=\"alignnone\" \/><\/p>\n<p>\u4f46\u662f\uff0c\u65e0\u8bba\u4ec0\u4e48\u5b57\u4f53\uff0c\u4ec0\u4e48\u6d4f\u89c8\u5668\uff0cinline\u5143\u7d20\u7684\u4e0a\u6a2a\u884c\u548c\u4e0a\u8fb9\u6846\u548c\u4e0a\u5916\u6846\u90fd\u662f\u7d27\u5bc6\u8fde\u63a5\u5728\u4e00\u8d77\u7684\u3002\u6709\u4eba\u53ef\u80fd\u4f1a\u7591\u95ee\uff0c\u6709\u4e2a\u5375\u7528\uff1f\u563f\uff0c\u4f60\u8fd8\u522b\u8bf4\uff0c\u8bf4\u4e0d\u5b9a\u4ec0\u4e48\u65f6\u5019\u60f3\u5b9e\u73b0\u67d0\u56fe\u5f62\u751f\u6210\u6548\u679c\u7684\u65f6\u5019\uff0c\u4f1a\u6709\u5947\u7528\u3002<\/p>\n<p>OK, \u672c\u8282\u7684<code>underline\/overline<\/code>\u7b49\uff0c\u5b9e\u9645\u4e0a\u5728\u65b0\u7684<code>text-decoraction<\/code>\u4ec5\u4ec5\u662f\u5176\u4e2dtext-decoration-line\u5c5e\u6027\u503c\uff0c\u53ea\u662f<code>text-decoraction<\/code>\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<h3>\u4e8c\u3001\u65b0\u7684text-decoration-style\u7c7b\u578b<\/h3>\n<p>\u4e0a\u4e00\u8282\u8bb2\u7684\u90fd\u662f\u8001CSS\u7684\u6545\u4e8b\uff0c\u5728CSS3\u65f6\u4ee3\uff0c<code>text-decoration<\/code>\u4e5f\u53d1\u751f\u4e86\u4e00\u4e9b\u8fdb\u5316\uff0c\u9996\u5148\u5c31\u662f\u6587\u5b57\u88c5\u9970\u7684\u7c7b\u522b\u53d8\u591a\u4e86\u3002\u4ee5\u524d\u5c31\u662f\u7ebf\u554a\u7ebf\u7684\uff0c\u8981\u4e48\u4e0a\u8fb9\u7ebf\uff0c\u8981\u4e48\u4e2d\u95f4\u6a2a\u4e2a\u7ebf\uff0c\u6216\u8005\u4e0b\u5212\u7ebf\u3002\u73b0\u5728\u725b\u5927\u4e86\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u662f\u865a\u7ebf\u3001\u70b9\u7ebf\u3001\u53cc\u7ebf\u3001\u751a\u81f3\u662f\u6ce2\u6d6a\u7ebf\u3002<\/p>\n<div class=\"zxx_code\">\n<pre>text-decoration-style: solid;\r\ntext-decoration-style: double;\r\ntext-decoration-style: dotted;\r\ntext-decoration-style: dashed;\r\ntext-decoration-style: wavy;\r\n\r\ntext-decoration-style: inherit;<\/pre>\n<\/div>\n<h3>\u4e09\u3001text-decoration-color\u5b9a\u4e49\u88c5\u9970\u7ebf\u7684\u989c\u8272<\/h3>\n<p>\u4ee5\u524d<code>text-decoration<\/code>\u7684\u989c\u8272\u662f\u8ddf\u7740color\u8d70\u7684\uff0c\u6211\u4eec\u662f\u4e0d\u80fd\u4fee\u6539\u7684\u3002\u4f46\u662f\uff0c\u73b0\u5728\uff0c\u65b0\u51fa\u6765\u4e86\u4e2a<code>text-decoration-color<\/code>, \u6211\u4eec\u53ef\u4ee5\u6109\u5feb\u5730\u5b9a\u4e49\u88c5\u9970\u7ebf\u7684\u989c\u8272\u2026\u2026\u8fd9\u6837\u7684\u573a\u666f\uff0c\u9700\u8981\u7b49\u5230\u6d4f\u89c8\u5668\u8db3\u591f\u517c\u5bb9\u624d\u884c\u3002<\/p>\n<p>\u76ee\u524d\u6700\u8fd1\u51e0\u4e2a\u7248\u672c\u7684FireFox\u6d4f\u89c8\u5668\u65e0\u538b\u529b\u652f\u6301<code>text-decoration-color<\/code>, \u4f46\u662fChrome\u6d4f\u89c8\u5668\u8fd8\u9700\u8981\u53bb<code>chrome:\/\/flags<\/code>\u624b\u52a8\u5f00\u542f\u201c\u542f\u7528\u5b9e\u9a8c\u6027\u7f51\u7edc\u5e73\u53f0\u529f\u80fd\u201d\u624d\u53ef\u4ee5\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-04_010217.png\" width=\"479\" height=\"191\" alt=\"\u542f\u7528\u5b9e\u9a8c\u6027\u7f51\u7edc\u5e73\u53f0\u529f\u80fd\u622a\u56fe\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p><a href=\"https:\/\/caniuse.com\/text-decoration\/embed\" rel=\"nofollow\" target=\"_blank\">\u517c\u5bb9\u6027<\/a>\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-09_000838.png\" width=\"559\" height=\"262\" alt=\"text-decoration\u517c\u5bb9\u6027\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<h3>\u4e09\u3001\u6587\u5b57\u548c\u7ebf\u7684\u8986\u76d6\u5173\u7cfbtext-decoration-skip<\/h3>\n<p><code>text-decoration-skip<\/code>\u8868\u793a\uff0c\u5f53\u5b57\u7b26\u548c\u88c5\u9970\u7ebf\u53d1\u751f\u91cd\u53e0\u5173\u7cfb\u7684\u65f6\u5019\uff0c\u4f8b\u5982\uff0c\u5220\u9664\u7ebf\uff0c\u6216\u8005\u4e00\u4e9b\u82f1\u6587\u5b57\u7b26(g, q)\u548c\u4e0b\u5212\u7ebf\uff0c\u6211\u4eec\u7684\u88c5\u9970\u7ebf\u662f\u8df3\u8fc7\u6587\u5b57\u5b57\u7b26\uff0c\u8fd8\u662f\u76f4\u63a5\u8fde\u5728\u4e00\u8d77\u7a7f\u8fc7\u53bb\u3002\u4e3e\u4e2a\u4f8b\u5b50\u5427\uff0c\u5982\u4e0bCSS\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>a { text-decoration-skip: ink; }<\/pre>\n<\/div>\n<p>\u53ef\u80fd\u6700\u540e\u7684\u8868\u73b0\u4f1a\u662f\u8fd9\u6837\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201506\/ink.png\" width=\"536\" height=\"100\" alt=\"skip:ink\u7684\u6548\u679c\u622a\u56fe\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p><code>text-decoration-skip<\/code>\u652f\u6301\u7684\u4e00\u4e9b\u503c\u4ee5\u53ca\u542b\u4e49\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><code>objects<\/code>: \u9ed8\u8ba4\u503c\u3002 \u88c5\u9970\u7ebf\u8df3\u8fc7\u5185\u8054\u5bf9\u8c61\uff0c\u6bd4\u65b9\u8bf4\u56fe\u7247\u554a\u6216\u8005<code>inline-block<\/code>\u5143\u7d20\u3002<\/li>\n<li><code>none<\/code>: \u88c5\u9970\u7ebf\u7a7f\u8fc7\u4e00\u5207\uff0c\u5305\u62ec\u672c\u5e94\u8df3\u8fc7\u7684\u5185\u8054\u5bf9\u8c61\u3002<\/li>\n<li><code>spaces<\/code>: \u88c5\u9970\u7ebf\u8df3\u8fc7\u7a7a\u683c\u6216\u5b57\u7b26\u95f4\u5206\u9694\uff0c\u4ee5\u53ca<code>letter-spacing<\/code>\u6216<code>word-spacing<\/code>\u5f62\u6210\u7684\u95f4\u8ddd\u3002<\/li>\n<li><code>ink<\/code>: \u88c5\u9970\u7ebf\u8df3\u8fc7\u7b26\u53f7\u6216\u4e0b\u6c89\u5b57\u6bcd\u3002<\/li>\n<li><code>edges<\/code>: \u88c5\u9970\u6027\u8d77\u59cb\u4e8e\u5185\u5bb9\u8d77\u59cb\u8fb9\u7f18\u540e\u9762\uff0c\u7ed3\u675f\u8bed\u5185\u5bb9\u7ed3\u675f\u8fb9\u7f18\u7684\u524d\u9762\u3002\u8fd9\u4e2a\u5c5e\u6027\u503c\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u8ba9\u4e24\u4e2a\u641e\u5728\u4e00\u8d77\u7684\u4e0b\u5212\u7ebf\u5143\u7d20\u770b\u4e0a\u53bb\u516c\u7528\u4e00\u6761\u4e0b\u5212\u7ebf\u3002\u8fd9\u5bf9\u4e8e\u4e2d\u6587\u5b57\u4f53\u5f88\u6709\u7528\uff0c\u56e0\u4e3a\u4f1a\u4f7f\u7528\u4e0b\u5212\u7ebf\u4f5c\u4e3a\u6807\u70b9\u7b26\u53f7\u3002<\/li>\n<li><code>box-decoration<\/code>: \u88c5\u9970\u7ebf\u8df3\u8fc7\u7ee7\u627f\u7684<code>margin<\/code>, <code>border<\/code>, \u4ee5\u53ca<code>padding<\/code>. <\/li>\n<li><code>trailing-spaces<\/code>: \u88c5\u9970\u7ebf\u8df3\u8fc7<code>pre<\/code>\u6216<code>white-space: pre-wrap<\/code>\u91cc\u9762\u524d\u540e\u7a7a\u683c\u3002<\/li>\n<\/ul>\n<p>\u6548\u679c\u5982\u4e0b\u56fe\u793a\u610f\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201506\/t-d-s.png\" width=\"539\" height=\"458\" alt=\"text-decoration-skip\u4e00\u4e9b\u6548\u679c\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u8fd9\u4e2a\u5c5e\u6027\u770b\u4e0a\u53bb\u5f88\u725b\u5f88\u5f3a\u5f88\u6709\u7528\uff0c\u4e0d\u8fc7\u6709\u4e2a\u4e0d\u5e78\u5730\u6d88\u606f\u8981\u544a\u8bc9\u5927\u5bb6\uff0c\u76ee\u524d\u8fd8\u6ca1\u6709\u4ec0\u4e48\u6d4f\u89c8\u5668\u652f\u6301\u8fd9\u4e2a\u5c5e\u6027\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u76ee\u524d\uff0c\u5b58\u5728\u4e00\u79cd\u6709\u4eba\u95ee\u6d25\u7684\u60c5\u51b5\u3002\u5728\u6700\u65b0\u7684OSX\u548ciOS\u4e0b\uff0cSafari\u6d4f\u89c8\u5668\u9ed8\u8ba4\u5bf9\u88c5\u9970\u7ebf\u7684\u7a7f\u8d8a\u89c4\u5219\u8fdb\u884c\u4e86\u4fee\u6539\uff0c\u9ed8\u8ba4\u5c31\u662f\u7c7b\u4f3c<code>text-decoration-skip: ink;<\/code>\u7684\u6548\u679c\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u8fd9\u884cCSS\u8fdb\u884c\u91cd\u7f6e\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>-webkit-text-decoration-skip: none;<\/pre>\n<\/div>\n<p>\u8fd9\u5c31\u662f\u76ee\u524d\u552f\u4e00\u7684\u4e0e<code>text-decoration-skip<\/code>\u6709\u54cd\u5e94\u7684\u4f7f\u7528\u573a\u666f\uff0c\u4e0d\u8fc7\uff0c\u4f30\u8ba1\u5f88\u5feb\uff0c\u5927\u5bb6\u5c31\u80fd\u6109\u5feb\u5730\u73a9\u800d\u4e86\u3002<\/p>\n<h3>\u56db\u3001text-decoration\u7684\u7f29\u5199<\/h3>\n<p>\u6211\u4eec\u76ee\u524d\u4f7f\u7528\u7684<code>text-decoration<\/code>\u5b9e\u9645\u4e0a\u662f\u79cd\u7f29\u5199\uff0c\u5b8c\u6574\u7684\uff0c\u5e94\u8be5\u5305\u62ec\uff1a<code>text-decoration-line<\/code>, <code>text-decoration-style<\/code>, <code>text-decoration-color<\/code>\u7b49\u3002\u4f8b\u5982\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>text-decoration: underline wavy red;<\/pre>\n<\/div>\n<p>\u81f3\u4e8e\u6d4f\u89c8\u5668\u652f\u4e0d\u652f\u6301\uff0c\u5219\u662f\u53e6\u5916\u4e00\u56de\u4e8b\u4e86\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5f53\u4e0b\u642c\u8fd0\u5de5\uff0c\u5927\u5bb6\u53ef\u4ee5\u540c\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u611f\u53d7<code>text-decoration<\/code>\u7684\u4e00\u4e9b\u65b0\u7279\u6027\u548c\u65b0\u8868\u73b0\u3002<\/p>\n<p><iframe id=\"cp_embed_emxpmJ\" src=\"\/\/codepen.io\/css-tricks\/embed\/emxpmJ?height=508&amp;theme-id=1&amp;slug-hash=emxpmJ&amp;default-tab=result&amp;user=css-tricks\" scrolling=\"no\" frameborder=\"0\" height=\"508\" allowtransparency=\"true\" allowfullscreen=\"true\" class=\"cp_embed_iframe undefined\" style=\"width: 100%; overflow: hidden;\"><\/iframe><\/p>\n<h3>\u4e94\u3001\u60f3\u4e0d\u51fa\u6807\u9898\u7684\u7ed3\u675f\u8bed<\/h3>\n<p>\u56e0\u4e3a\u592a\u665a\u4e86\uff0c\u6211\u5df2\u7ecf\u6ca1\u6709\u4ec0\u4e48\u60f3\u5410\u69fd\u7684\u4e86\u3002<\/p>\n<p>\u660e\u5929\u53d1\u5de5\u8d44\u4e86\uff0chappy~  <\/p>\n<p>\u660e\u5929\u8fd8\u6709\u770b\u7535\u5f71\u7684\u6d3b\u52a8\uff0chappy~<\/p>\n<p>\u8fd8\u6709\u4e2a\u644a\u5b50\u8981\u6536\u62fe\u2026\u2026\u6069\u2026\u2026\u7d27\u4e0a\u7709\u5934\u2026\u2026<\/p>\n<p>\u660e\u5929\u662f\u5730\u94c1\u4e0a\u73ed\u5462\u8fd8\u662f\u5176\u4ed6\u4ea4\u901a\u5de5\u5177\uff1f<\/p>\n<p>\u9c7c\u7f38\u91cc\u7684\u6cb3\u868c\u8bb0\u5f97\u63d0\u9192\u8001\u5a46\u660e\u5929\u653e\u751f~~<\/p>\n<p>\u2026\u2026<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u90e8\u5206\u56fe\u7247\u4ee5\u53cademo\u53c2\u8003\u81ea&#8221;<a href=\"https:\/\/css-tricks.com\/more-control-over-text-decoration\/\">More Control over Text Decoration<\/a>&#8220;\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=4831\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=4831<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3CSS text-decoration\u65b0\u7279\u6027\u65b0\u8868\u73b0\uff0c\u5305\u62ec\u6ce2\u6d6a\u7ebf\uff0c\u865a\u7ebf\uff0c\u70b9\u7ebf\u4ee5\u53ca\u53cc\u5b9e\u7ebf\u7b49\u7c7b\u578b\uff0c\u4ee5\u53ca\u4e0b\u5212\u7ebf\u4ece\u6587\u5b57\u4e0b\u9762\u7a7f\u8fc7\u7684\u6548\u679c\u5b9e\u73b0\u7b49\u3002\u4ecb\u7ecd<code>text-decoration-line<\/code>, <code>text-decoration-style<\/code>, <code>text-decoration-color<\/code>\u7b49CSS\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":[521,996,998,999,997,711,514],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4831"}],"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=4831"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4831\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}