{"id":25464,"date":"2024-11-24T12:00:47","date_gmt":"2024-11-24T04:00:47","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25464\/"},"modified":"2024-11-24T12:00:47","modified_gmt":"2024-11-24T04:00:47","slug":"%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%a4%9a%e8%a1%8c%e6%96%87%e6%9c%ac%e7%9a%84%e6%82%ac%e5%81%9c%e4%b8%8b%e5%88%92%e7%ba%bf%e6%95%88%e6%9e%9c%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25464\/","title":{"rendered":"\u5982\u4f55\u5b9e\u73b0\u591a\u884c\u6587\u672c\u7684\u60ac\u505c\u4e0b\u5212\u7ebf\u6548\u679c\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173061685210712.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5b9e\u73b0\u591a\u884c\u6587\u672c\u7684\u60ac\u505c\u4e0b\u5212\u7ebf\u6548\u679c\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5b9e\u73b0\u591a\u884c\u6587\u672c\u7684\u60ac\u505c\u4e0b\u5212\u7ebf\u6548\u679c\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong> \u60ac\u505c\u6548\u679c\uff1a\u591a\u884c\u6587\u672c\u4e0b\u5212\u7ebf<\/strong><\/p>\n<p>\u5f53\u524d\u7684 css \u60ac\u505c\u6548\u679c\u53ea\u80fd\u5728\u4e00\u884c\u6587\u672c\u4e0b\u5e94\u7528\u4e0b\u5212\u7ebf\u3002\u5982\u679c\u6211\u4eec\u60f3\u8981\u4e3a\u6bcf\u4e00\u884c\u6587\u672c\u6dfb\u52a0\u4e0b\u5212\u7ebf\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u4ee3\u7801\u8fdb\u884c\u4e00\u4e9b\u8c03\u6574\u3002<\/p>\n<p>\u4fee\u6539\u540e\u7684 css \u5982\u4e0b\uff1a<\/p>\n<pre>.test {\n  display: inline;\n  transition: all .5s;\n  background: linear-gradient(270deg, #00000036, #00ff53cf) 0 0;\n  background: linear-gradient(270deg, #00ff53cf, #00ff53cf) 0 0;\n  background-size: 100% 2px;\n  background-repeat: no-repeat;\n  background-position: 0% 100%;\n  background-size: 0% 2px;\n}\n\n.test:hover {\n  background: linear-gradient(270deg, #00000036, #00ff53cf) 0 0;\n  background: linear-gradient(270deg, #00ff53cf, #00ff53cf) 0 0;\n  background-size: 100% 2px;\n  background-repeat: no-repeat;\n  background-position: 0% 100%;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u5e94\u7528 inline \u5c5e\u6027\u548c\u7ebf\u6027\u6e10\u53d8\u80cc\u666f\uff0c\u4e0b\u5212\u7ebf\u73b0\u5728\u53ef\u4ee5\u8de8\u8d8a\u6574\u4e2a <\/p>\n<p> \u6807\u7b7e\uff0c\u5305\u62ec\u591a\u884c\u6587\u672c\u3002\u5f53\u60ac\u505c\u65f6\uff0c\u4e0b\u5212\u7ebf\u5c06\u4ece 0% \u6269\u5c55\u5230 100%\uff0c\u4ece\u800c\u521b\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u4e0b\u5212\u7ebf\u6548\u679c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5b9e\u73b0\u591a\u884c\u6587\u672c\u7684\u60ac\u505c\u4e0b\u5212\u7ebf\u6548\u679c\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60ac\u505c\u6548\u679c\uff1a\u591a\u884c\u6587\u672c\u4e0b\u5212\u7ebf \u5f53\u524d\u7684 css \u60ac\u505c\u6548\u679c\u53ea\u80fd\u5728\u4e00\u884c\u6587\u672c\u4e0b\u5e94\u7528\u4e0b\u5212\u7ebf\u3002\u5982\u679c\u6211\u4eec\u60f3\u8981\u4e3a\u6bcf\u4e00\u884c\u6587\u672c\u6dfb\u52a0\u4e0b\u5212\u7ebf\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u4ee3\u7801\u8fdb\u884c\u4e00\u4e9b\u8c03\u6574\u3002 \u4fee\u6539\u540e\u7684 css \u5982\u4e0b\uff1a .test { display: inline; transition: all .5s; background: linear-gradient(270deg, #00000036, #00ff53cf) 0 0; background: linear-gradient(270deg, #00ff53cf, #00ff53cf) 0 0; background-size: 100% 2px; background-repeat: no-repeat; background-position: 0% 100%; background-size: 0% 2px; } .test:hover { background: linear-gradient(270deg, #00000036, #00ff53cf) 0 0; background: linear-gradient(270deg, #00ff53cf, #00ff53cf) 0 0; background-size: 100% 2px; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-25464","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=25464"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25464\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}