{"id":792,"date":"2016-04-13T09:01:23","date_gmt":"2016-04-13T01:01:23","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=792"},"modified":"2016-04-13T09:01:23","modified_gmt":"2016-04-13T01:01:23","slug":"css%e4%b8%ad%e5%ae%9a%e4%b9%89alink%e3%80%81avisited%e3%80%81ahover%e3%80%81aactive%e9%a1%ba%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/792.html","title":{"rendered":"CSS\u4e2d\u5b9a\u4e49a:link\u3001a:visited\u3001a:hover\u3001a:active\u987a\u5e8f"},"content":{"rendered":"
\u4ee5\u524d\u7528CSS\u4e00\u76f4\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u6700\u8fd1\u7ed9\u4e00\u4e2a\u672c\u79d1\u540c\u5b66\u505a\u7684\u9879\u76ee\u91cc\u9762\u3002\u51fa\u73b0\u4e00\u4e9b\u95ee\u9898\uff0c\u641c\u7d22\u5f15\u64ce\u67e5\u4e86\u4e00\u4e9b\u7f51\u7ad9\u548c\u8d44\u6599\uff0c\u53d1\u73b0\u5f88\u591a\u4eba\u95ee\u5230\u8fd9\u4e2a\u95ee\u9898\uff0c\u7ed9\u51fa\u7684\u7ed3\u679c\u6211\u8bd5\u4e86\u8bd5\uff0c\u5927\u90e8\u5206\u90fd\u4e0d\u6b63\u786e\u3002<\/p>\n
\u7ed9\u51fa\u6211\u8bd5\u7684\u987a\u5e8f\uff0c\u53ef\u80fd\u4f1a\u5bf9\u5927\u5bb6\u6709\u4e00\u4e9b\u5e2e\u52a9\uff1a<\/p>\n
\r\nA:link {\r\n color: #000000;\r\n TEXT-DECORATION: none\r\n}\r\nA:visited {\r\n COLOR: #000000;\r\n TEXT-DECORATION: none\r\n}\r\nA:hover {\r\n COLOR: #ff7f24;\r\n text-decoration: underline;\r\n}\r\nA:active {\r\n COLOR: #ff7f24; \r\n text-decoration: underline;\r\n}\r\n<\/pre>\n\u4eca\u5929\u770b\u5230\u4e00\u4f4d\u533f\u540d\u670b\u53cb\u7684\u95ee\u9898\uff0c\u53c8\u53bb\u67e5\u4e86\u4e00\u4e9b\u8d44\u6599\uff0c\u8fd9\u4e2a\u4eba\u8bb2\u7684\u975e\u5e38\u900f\u5f7b\uff1a\u5f15\u81ea\u7075\u7738\u25cf\u7b2c\u4e00\u7089\u6c89\u9999\u535a\u5ba2<\/p>\n
a :link\u3001a:hover\u3001a:visited\u8fd9\u51e0\u4e2a\u5143\u7d20\uff0c\u5b9a\u4e49CSS\u65f6\u5019\u7684\u987a\u5e8f\u4e0d\u540c\uff0c\u4e5f\u4f1a\u76f4\u63a5\u5bfc\u81f4\u94fe\u63a5\u663e\u793a\u7684\u6548\u679c\u4e0d\u540c\u3002
\n\u6211\u60f3\uff0c\u539f\u56e0\u5c31\u5728\u4e8e\u6d4f\u89c8\u5668\u89e3\u91caCSS\u65f6\u9075\u5faa\u7684\u201c\u5c31\u8fd1\u539f\u5219\u201d\u3002<\/p>\n\u4e3e\u4f8b\u6765\u8bf4\uff1a
\n\u6211\u60f3\u8ba9\u672a\u8bbf\u95ee\u94fe\u63a5\u989c\u8272\u4e3a\u84dd\u8272\uff0c\u6d3b\u52a8\u94fe\u63a5\u4e3a\u7eff\u8272\uff0c\u5df2\u8bbf\u95ee\u94fe\u63a5\u4e3a\u7ea2\u8272\uff1a
\n\u7b2c\u4e00\u79cd\u60c5\u51b5\uff1a\u6211\u5b9a\u4e49\u7684\u987a\u5e8f\u662fa:visited\u3001a:hover\u3001a:link\uff0c\u8fd9\u65f6\u4f1a\u53d1\u73b0\uff1a\u628a\u9f20\u6807\u653e\u5230\u672a\u8bbf\u95ee\u8fc7\u7684\u84dd\u8272\u94fe\u63a5\u4e0a\u65f6\uff0c\u5b83\u5e76\u4e0d\u53d8\u6210\u7eff\u8272\uff0c\u53ea\u6709\u653e\u5728\u5df2\u8bbf\u95ee\u7684\u7ea2\u8272\u94fe\u63a5\u4e0a\uff0c\u94fe\u63a5\u624d\u4f1a\u53d8\u7eff\u3002
\n\u7b2c\u4e8c\u79cd\u60c5\u51b5\uff1a\u6211\u628aCSS\u5b9a\u4e49\u987a\u5e8f\u8c03\u6574\u4e3a\uff1aa:link\u3001a:visited\u3001a:hover\uff0c\u8fd9\u65f6\uff0c\u65e0\u8bba\u4f60\u9f20\u6807\u7ecf\u8fc7\u7684\u94fe\u63a5\u6709\u6ca1\u6709\u88ab\u8bbf\u95ee\u8fc7\uff0c\u5b83\u90fd\u4f1a\u53d8\u6210\u7eff\u8272\u5566\u3002<\/p>\n\u8fd9\u662f\u56e0\u4e3a\uff0c\u4e00\u4e2a\u9f20\u6807\u7ecf\u8fc7\u7684\u672a\u8bbf\u95ee\u94fe\u63a5\u540c\u65f6\u62e5\u6709a:link\u3001a:hover\u4e24\u79cd\u5c5e\u6027\uff0c\u5728\u7b2c\u4e00\u79cd\u60c5\u51b5\u4e0b\uff0ca:link\u79bb\u5b83\u6700\u8fd1\uff0c\u6240\u4ee5\u5b83\u4f18\u5148\u6ee1\u8db3a:link\uff0c\u800c\u653e\u5f03a:hover\u7684\u91cd\u590d\u5b9a\u4e49\u3002
\n\u5728\u7b2c\u4e8c\u79cd\u60c5\u51b5\uff0c\u65e0\u8bba\u94fe\u63a5\u6709\u6ca1\u6709\u88ab\u8bbf\u95ee\u8fc7\uff0c\u5b83\u9996\u5148\u8981\u68c0\u67e5\u662f\u5426\u7b26\u5408a:hover\u7684\u6807\u51c6\uff08\u5373\u662f\u5426\u6709\u9f20\u6807\u7ecf\u8fc7\u5b83\uff09\uff0c\u6ee1\u8db3\uff0c\u5219\u53d8\u6210\u7eff\u8272\uff0c\u4e0d\u6ee1\u8db3\uff0c\u5219\u7ee7\u7eed\u5411\u4e0a\u67e5\u627e\uff0c\u4e00\u76f4\u627e\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5b9a\u4e49\u4e3a\u6b62\u3002<\/p>\n\u4e00\u53e5\u8bdd\uff1a\u5728CSS\u4e2d\uff0c\u5982\u679c\u5bf9\u4e8e\u76f8\u540c\u5143\u7d20\u6709\u9488\u5bf9\u4e0d\u540c\u6761\u4ef6\u7684\u5b9a\u4e49\uff0c\u5b9c\u5c06\u6700\u4e00\u822c\u7684\u6761\u4ef6\u653e\u5728\u6700\u4e0a\u9762\uff0c\u5e76\u4f9d\u6b21\u5411\u4e0b\uff0c\u4fdd\u8bc1\u6700\u4e0b\u9762\u7684\u662f\u6700\u7279\u6b8a\u7684\u6761\u4ef6\u3002
\n\u8fd9\u6837\uff0c\u6d4f\u89c8\u5668\u5728\u663e\u793a\u5143\u7d20\u65f6\uff0c\u624d\u4f1a\u4ece\u7279\u6b8a\u5230\u4e00\u822c\u3001\u9010\u7ea7\u5411\u4e0a\u9a8c\u8bc1\u6761\u4ef6\uff0c\u624d\u4f1a\u4f7f\u4f60\u7684\u6bcf\u4e00\u4e2aCSS\u8bed\u53e5\u90fd\u8d77\u5230\u6548\u679c\u3002
\n\u5f53\u7136\uff0c\u5982\u679c\u6545\u610f\u6253\u4e71\u987a\u5e8f\uff0c\u4e5f\u4f1a\u9020\u6210\u4e00\u4e9b\u7279\u6b8a\u7684\u6548\u679c\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u4e3a\u94fe\u63a5\u5236\u9020\u51fa\u4e0b\u5212\u7ebf\u989c\u8272\u4e0e\u6587\u5b57\u989c\u8272\u7684\u5dee\u5f02\u3002<\/p>\n\u8fd1\u65e5\u7a81\u7136\u53d1\u73b0\uff0c\u539f\u6765\u8fd9\u4e2aCSS\u95ee\u9898\u65e9\u5df2\u6709\u9ad8\u4eba\u63d0\u51fa\u5566\u3002\u8fd8\u662f\u4e2a\u8001\u5916\u5462\u3002\u4ed6\u7ed9\u603b\u7ed3\u4e86\u4e00\u4e2a\u4fbf\u4e8e\u8bb0\u5fc6\u7684\u201c\u7231\u6068\u539f\u5219\u201d\uff08LoVe\/HAte\uff09\uff0c\u5373\u56db\u79cd\u4f2a\u7c7b\u7684\u9996\u5b57\u6bcd:LVHA\u3002
\n\u518d\u91cd\u590d\u4e00\u904d\u6b63\u786e\u7684\u987a\u5e8f\uff1aa:link\u3001a:visited\u3001a:hover\u3001a:active .<\/p>\n\u6700\u540e\u7ecf\u9a8c\u8865\u5145\uff1a<\/p>\n
1.\u9f20\u6807\u7ecf\u8fc7\u7684\u201c\u672a\u8bbf\u95ee\u94fe\u63a5\u201d\u540c\u65f6\u62e5\u6709a:link\u3001a:hover\u4e24\u79cd\u5c5e\u6027\uff0c\u540e\u9762\u7684\u5c5e\u6027\u4f1a\u8986\u76d6\u524d\u9762\u7684\u5c5e\u6027\u5b9a\u4e49\uff1b<\/p>\n
2.\u9f20\u6807\u7ecf\u8fc7\u7684\u201c\u5df2\u8bbf\u95ee\u94fe\u63a5\u201d\u540c\u65f6\u62e5\u6709a:visited\u3001a:hover\u4e24\u79cd\u5c5e\u6027\uff0c\u540e\u9762\u7684\u5c5e\u6027\u4f1a\u8986\u76d6\u524d\u9762\u7684\u5c5e\u6027\u5b9a\u4e49\uff1b<\/p>\n
\u6240\u4ee5\u8bf4\uff0ca:hover\u5b9a\u4e49\u4e00\u5b9a\u8981\u653e\u5728a:link\u3001a:visited\u7684\u540e\u9762\uff0c\uff0c\uff0c<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4ee5\u524d\u7528CSS\u4e00\u76f4\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u6700\u8fd1\u7ed9\u4e00\u4e2a\u672c\u79d1\u540c\u5b66\u505a\u7684\u9879\u76ee\u91cc\u9762\u3002\u51fa\u73b0\u4e00\u4e9b\u95ee\u9898\uff0c\u641c\u7d22\u5f15\u64ce\u67e5\u4e86\u4e00\u4e9b\u7f51\u7ad9\u548c\u8d44\u6599 […]<\/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":[227,205,226],"class_list":["post-792","post","type-post","status-publish","format-standard","hentry","category-web","tag-avisited","tag-css","tag-hover"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=792"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/792\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}