{"id":8427,"date":"2024-06-09T20:01:01","date_gmt":"2024-06-09T12:01:01","guid":{"rendered":""},"modified":"2024-06-09T20:01:01","modified_gmt":"2024-06-09T12:01:01","slug":"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8427.html","title":{"rendered":"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09"},"content":{"rendered":"
\n

\u4f2a\u7c7b\u9009\u62e9\u5668\uff1a
\u4f2a\u7c7b\uff1a\u662f\u903b\u8f91\u4e0a\u5b58\u5728\uff0c\u518d\u6587\u6863\u6811\u6811\u4e2d\u4e0d\u5b58\u5728\u7684\u7c7b<\/p>\n

-------------\u5e94\u7528\uff1a\u8d85\u94fe\u63a5--\u5177\u6709\u56db\u79cd\u72b6\u6001\uff08\u672a\u8bbf\u95ee\u72b6\u6001\u3001\u9f20\u6807\u60ac\u505c\u72b6\u6001\u3001\u6d3b\u52a8\u72b6\u6001\u3001\u8bbf\u95ee\u8fc7\u72b6\u6001\uff09<\/p>\n<\/blockquote>\n

\n

\u8bed\u6cd5\u89c4\u5219 <\/p>\n

\u9009\u62e9\u5668\uff1a\u4f2a\u7c7b{
\n <\/p>\n

        \u5c5e\u6027\uff1a\u5c5e\u6027\u503c\uff1b<\/p>\n

        \u5c5e\u6027\uff1a\u5c5e\u6027\u503c\uff1b<\/p>\n

\uff0c\uff0c\uff0c<\/p>\n

} <\/p>\n<\/blockquote>\n\n\n\n\n\n\n\n\n\n\n
\u4f2a\u7c7b\u7c7b\u578b<\/td>\n\u63cf\u8ff0<\/td>\n<\/tr>\n
:link<\/td>\n\u5c06\u6837\u5f0f\u6dfb\u52a0\u5230\u672a\u88ab\u8bbf\u95ee\u8fc7\u7684\u94fe\u63a5<\/td>\n<\/tr>\n
:hover<\/td>\n\u5f53\u9f20\u6807\u60ac\u505c\u5728\u5143\u7d20\u4e0a\u65b9\uff0c\u5411\u5143\u7d20\u6dfb\u52a0\u6837\u5f0f<\/td>\n<\/tr>\n
:active<\/td>\n\u5c06\u6837\u5f0f\u6dfb\u52a0\u5230\u88ab\u6fc0\u6d3b\u7684\u5143\u7d20<\/td>\n<\/tr>\n
:visited<\/td>\n\u5c06\u6837\u5f0f\u6dfb\u52a0\u5230\u5df2\u7ecf\u88ab\u8bbf\u95ee\u8fc7\u7684\u5143\u7d20<\/td>\n<\/tr>\n
:first-child<\/td>\n\u5c06\u6837\u5f0f\u6dfb\u52a0\u5230\u6587\u6863\u6811\u4e2d\u6bcf\u4e00\u5c42\u5143\u7d20\u6307\u5b9a\u7c7b\u578b\u7684\u7b2c\u4e00\u4e2a\u5b50\u5143\u7d20<\/td>\n<\/tr>\n
:first-child<\/td>\n\u5f53\u5411\u524d\u88ab\u9009\u4e2d\uff0c\u83b7\u5f97\u7126\u70b9\u7684\u5143\u7d20\u6dfb\u52a0\u5143\u7d20\u6837\u5f0f<\/td>\n<\/tr>\n
:lang<\/td>\n\u5411\u5e26\u6709\u6307\u5b9alang\u5c5e\u6027\u7684\u5143\u7d20\u6dfb\u52a0\u6837\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

 \"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

 <\/p>\n

<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<title>\u4f2a\u7c7b<\/title>\n\t<style type=\"text\/css\">\n\t\t.box{\n\t\t\twidth: 300px;\n\t\t\theight: 100px;\n\t\t\tbackground-color:#1CF912\n\t\t}\n\t\t\n\t<\/style>\n\t\n<\/head>\n<body>\n\t<div class=\"box\">\n\t\t<a href=\"#\" class=\"cus-link\">\n\t\t\t\u6309\u94ae\n\t\t<\/a>\n\t<\/div>\n\n<\/body>\n<\/html>\n<\/code><\/pre>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

\u8fdb\u884c\u8d85\u94fe\u63a5\u7684\u8bbe\u7f6e<\/p>\n

link<\/p>\n

\u9ed8\u8ba4\u8bbe\u7f6e<\/p>\n


\n
\n

 a==\u94fe\u63a5\u6807\u7b7e \u9f20\u6807\u4e0a\u53bb \u4f1a\u53d8\u6210\u624b\u7684\u5f62\u72b6 \u8be5\u94fe\u63a5\u5730\u4e0b\u4f1a\u6709\u4e0b\u5212\u7ebf<\/p>\n

link\u4f2a\u7c7b-----\u8bbe\u7f6e\u9ed8\u8ba4\u72b6\u6001\u4e0b\u7684\u94fe\u63a5<\/p>\n

\u6309\u94ae\uff1adisplay <\/p>\n

\u80cc\u666f\u8272<\/p>\n

\u5706\u89d2<\/p>\n

\u5b57\u4f53<\/p>\n

\u989c\u8272<\/p>\n

\u53bb\u6389\u4e0b\u5212\u7ebf<\/p>\n<\/blockquote>\n

\n

 text-decoration: none; \u53bb\u6389\u4e0b\u5212\u7ebf<\/p>\n<\/blockquote>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09 <\/p>\n

\n

 \u5b57\u4f53 font-size: 20px;<\/p>\n<\/blockquote>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09 <\/p>\n

\n

\u8bbe\u7f6e\u80cc\u666f\u8272 \uff1a    background-color: #DF358F;<\/p>\n<\/blockquote>\n

 \"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

 <\/p>\n

\n

 \u5706\u89d2            border-radius: 4px;<\/p>\n<\/blockquote>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

\n

\u6309\u94ae\uff1adisplay <\/p>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n<\/blockquote>\n


\n
\n

\u5f53\u9f20\u6807\u505c\u5728\u4e0a\u65b9 \u8fdb\u884c\u80cc\u666f\u8272\u7684\u4fee\u6539background-color: <\/p>\n

\u4f7f\u7528hover<\/p>\n

\u524d\u666f\u8272\u662f\u6587\u5b57\u7684\u989c\u8272<\/p>\n<\/blockquote>\n

\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

\n

\u5bf9\u56fe\u7247\u8fdb\u884c\u9f20\u6807\u60ac\u505c\u8fdb\u884c\u653e\u5927<\/p>\n<\/blockquote>\n

 \"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

 \"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n<\/p>\n

<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<title>\u4f2a\u7c7b<\/title>\n\t<style type=\"text\/css\">\n\t\t.box{\n\t\t\twidth: 300px;\n\t\t\theight: 100px;\n\t\t\tbackground-color:#1CF912\n\t\t}\n\t\ta.cus-link:link{\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 20px;\n\t\t\tbackground-color: #DF358F;\n\t\t\tborder-radius: 4px;\n\t\t\tdisplay: inline-block;\n\t\t\tpadding: 3px 10px 4px;\n\t\t\t\n\t\t}\n\t\ta.cus-link:hover{\n\t\t\tbackground-color: aliceblue;\n\t\t\tcolor: aqua;\n\t\t}\n\t\timg{\n\t\t\twidth: 60%;\n\t\t\theight: 60%;\n\t\t}\n\t\timg:hover{\n\t\t\twidth: 90%;\n\t\t\theight: 90%;\n\t\t}\n\t\t\n\t<\/style>\n\t\n<\/head>\n<body>\n\t<div class=\"box\">\n\t\t<a href=\"#\" class=\"cus-link\">\n\t\t\t\u6309\u94ae\n\t\t<\/a>\n\t<\/div>\n\t<img src=\"..\/images\/logo.png\" alt=\"logo\">\n\t\n<\/body>\n<\/html>\n<\/code><\/pre>\n

\u5b9e\u73b0\u6548\u679c\"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang\uff09<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"html-\u66f4\u591a\u7684\u6837\u5f0f\u9009\u62e9\u5668\uff08\u4f2a\u7c7b\u9009\u62e9\u5668\uff09--\u94fe\u63a5\u7684\u56db\u79cd\u53d8\u5316\uff08:link\u3001:hover\u3001:active\u3001:visited\u3001:first-chil:first-child\u3001:lang...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8427"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8427"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8427\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}