{"id":1083,"date":"2024-07-27T11:23:56","date_gmt":"2024-07-27T03:23:56","guid":{"rendered":"http:\/\/codermr.com\/?p=1083"},"modified":"2024-07-27T21:48:32","modified_gmt":"2024-07-27T13:48:32","slug":"css_article1","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/","title":{"rendered":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f"},"content":{"rendered":"\n<p><strong>\u5143\u7d20\u9009\u62e9\u5668\uff08Element Selector\uff09\uff1a<\/strong>\u901a\u8fc7\u5143\u7d20\u540d\u79f0\u9009\u62e9 HTML \u5143\u7d20\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\uff0c<strong>p<\/strong>&nbsp;\u9009\u62e9\u5668\u5c06\u9009\u62e9\u6240\u6709&nbsp;<strong>&lt;p&gt;<\/strong>&nbsp;\u5143\u7d20:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p {\n  color: blue;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u7c7b\u9009\u62e9\u5668\uff08Class Selector\uff09\uff1a<\/strong>\u901a\u8fc7\u7c7b\u522b\u540d\u79f0\u9009\u62e9\u5177\u6709\u7279\u5b9a\u7c7b\u522b\u7684 HTML \u5143\u7d20\u3002<\/p>\n\n\n\n<p>\u7c7b\u9009\u62e9\u5668\u4ee5&nbsp;<strong>.<\/strong>&nbsp;\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u7740\u7c7b\u522b\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\uff0c<strong>.highlight<\/strong>&nbsp;\u9009\u62e9\u5668\u5c06\u9009\u62e9\u6240\u6709\u5177\u6709\u7c7b\u522b\u4e3a&nbsp;<strong>&#8220;highlight&#8221;<\/strong>&nbsp;\u7684\u5143\u7d20\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.highlight {\n  background-color: yellow;\n}<\/code><\/pre>\n\n\n\n<p><strong>ID \u9009\u62e9\u5668\uff08ID Selector\uff09\uff1a<\/strong>\u901a\u8fc7\u5143\u7d20\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff08ID\uff09\u9009\u62e9 HTML \u5143\u7d20\u3002<\/p>\n\n\n\n<p>ID \u9009\u62e9\u5668\u4ee5&nbsp;<strong>#<\/strong>&nbsp;\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u7740 ID \u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\uff0c<strong>#runoob<\/strong>&nbsp;\u9009\u62e9\u5668\u5c06\u9009\u62e9\u5177\u6709 ID \u4e3a&nbsp;<strong>&#8220;runoob&#8221;<\/strong>&nbsp;\u7684\u5143\u7d20\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#runoob {\n  width: 200px;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u5c5e\u6027\u9009\u62e9\u5668\uff08Attribute Selector\uff09\uff1a<\/strong>\u901a\u8fc7\u5143\u7d20\u7684\u5c5e\u6027\u9009\u62e9 HTML \u5143\u7d20\u3002\u5c5e\u6027\u9009\u62e9\u5668\u53ef\u4ee5\u6839\u636e\u5c5e\u6027\u540d\u548c\u5c5e\u6027\u503c\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">input[type=&#8221;text&#8221;]&nbsp;\u9009\u62e9\u5668\u5c06\u9009\u62e9\u6240\u6709&nbsp;type&nbsp;\u5c5e\u6027\u4e3a&nbsp;&#8220;text&#8221;&nbsp;\u7684 &lt;input&gt; \u5143\u7d20<\/mark><\/strong>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>input&#91;type=\"text\"] {\n  border: 1px solid gray;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u540e\u4ee3\u9009\u62e9\u5668\uff08Descendant Selector\uff09\uff1a<\/strong>\u901a\u8fc7\u6307\u5b9a\u5143\u7d20\u7684\u540e\u4ee3\u5173\u7cfb\u9009\u62e9 HTML \u5143\u7d20\u3002<\/p>\n\n\n\n<p>\u540e\u4ee3\u9009\u62e9\u5668\u4f7f\u7528\u7a7a\u683c\u5206\u9694\u5143\u7d20\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>div p \u9009\u62e9\u5668\u5c06\u9009\u62e9\u6240\u6709\u5728 &lt;div&gt; \u5143\u7d20\u5185\u7684 &lt;p&gt; \u5143\u7d20<\/strong><\/mark>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>div p {\n  font-weight: bold;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u66f4\u591a\u9009\u62e9\u5668\u53c2\u8003\u4e0b\u5217\u8868\u683c<\/strong>\uff08\u76f8\u5173\u793a\u4f8b\u89c1\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/css-selectors.html\">https:\/\/www.runoob.com\/cssref\/css-selectors.html<\/a>\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"802\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-4.png\" alt=\"\" class=\"wp-image-1084\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-4.png 835w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-4-300x288.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-4-768x738.png 768w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading alignwide\" id=\"we-re-a-studio-in-berlin-with-an-international-practice-in-architecture-urban-planning-and-interior-design-we-believe-in-sharing-knowledge-and-promoting-dialogue-to-increase-the-creative-potential-of-collaboration\" style=\"font-size:48px;line-height:1.1\">CSS \u793a\u4f8b<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">background&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>\u6307\u5b9a\u80cc\u666f\u8272\u3002\u53ef\u4ee5\u540c\u65f6\u6307\u5b9a\u989c\u8272\u3001\u80cc\u666f\u56fe\u7247\u3002\u53ef\u4ee5\u8bbe\u7f6e\u7684\u5c5e\u6027\u5206\u522b\u662f\uff1abackground-color\u3001background-position\u3001background-size\u3001background-repeat\u3001background-origin\u3001background-clip\u3001background-attachment \u548c background-image\u3002\u5404\u503c\u4e4b\u95f4\u7528\u7a7a\u683c\u5206\u9694\uff0c\u4e0d\u5206\u5148\u540e\u987a\u5e8f\u3002\u53ef\u4ee5\u53ea\u6709\u5176\u4e2d\u7684\u67d0\u4e9b\u503c\uff0c\u4f8b\u5982&nbsp;<strong>background\uff1a\uff03FF0000 URL\uff08smiley.gif);<\/strong>&nbsp;\u662f\u5141\u8bb8\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1149\" height=\"554\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5.png\" alt=\"\" class=\"wp-image-1085\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5.png 1149w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5-300x145.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5-1024x494.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5-768x370.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-5-922x445.png 922w\" sizes=\"(max-width: 1149px) 100vw, 1149px\" \/><\/a><\/figure>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/css3-pr-background.html\">https:\/\/www.runoob.com\/cssref\/css3-pr-background.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">background-color&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>\u8bbe\u7f6e\u4e0d\u540c\u5143\u7d20\u7684\u80cc\u666f\u8272\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body\n{\n    background-color:yellow;\n}\nh1\n{\n    background-color:#00ff00;\n}\np\n{\n    background-color:rgb(255,0,255);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">background-image&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>background-image \u5c5e\u6027\u8bbe\u7f6e\u4e00\u4e2a\u5143\u7d20\u7684\u80cc\u666f\u56fe\u50cf\u3002\u5143\u7d20\u7684\u80cc\u666f\u662f\u5143\u7d20\u7684\u603b\u5927\u5c0f\uff0c\u5305\u62ec\u586b\u5145\u548c\u8fb9\u754c\uff08\u4f46\u4e0d\u5305\u62ec\u8fb9\u8ddd\uff09\u3002<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cbackground-image\u653e\u7f6e\u5728\u5143\u7d20\u7684\u5de6\u4e0a\u89d2\uff0c\u5e76\u91cd\u590d\u5782\u76f4\u548c\u6c34\u5e73\u65b9\u5411\u3002<\/mark><\/strong><\/p>\n\n\n\n<p>\u63d0\u793a\uff1a\u8bf7\u8bbe\u7f6e\u4e00\u79cd\u53ef\u7528\u7684\u80cc\u666f\u989c\u8272\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u5047\u5982\u80cc\u666f\u56fe\u50cf\u4e0d\u53ef\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528\u80cc\u666f\u8272\u5e26\u4ee3\u66ff\u3002<\/p>\n\n\n\n<p><strong>\u8bbe\u7f6e body \u5143\u7d20\u7684\u80cc\u666f\u56fe\u50cf\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body\n{\n    background-image:url('paper.gif');\n    background-color:#cccccc;\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"380\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-6.png\" alt=\"\" class=\"wp-image-1086\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-6.png 403w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-6-300x283.png 300w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">background-position&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>background-position\u5c5e\u6027\u8bbe\u7f6e\u80cc\u666f\u56fe\u50cf\u7684\u8d77\u59cb\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body\n\t{ \n\tbackground-image:url('smiley.gif');\n\tbackground-repeat:no-repeat;\n\tbackground-attachment:fixed;\n\tbackground-position:center; \n\t}<\/code><\/pre>\n\n\n\n<p>\u53c2\u8fd9\u4e2a\u5730\u5740\u4e2d\u7684 demo \u8fdb\u884c\u7ec3\u4e60\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/pr-background-position.html\">https:\/\/www.runoob.com\/cssref\/pr-background-position.html<\/a><\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-position\" rel=\"noreferrer noopener\">\u5982\u4f55\u8bbe\u7f6e\u9875\u9762\u80cc\u666f\u56fe\u50cf<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u5728\u9875\u9762\u4e0a\u8bbe\u7f6ebackground-image\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-position_percent\" rel=\"noreferrer noopener\">\u5982\u4f55\u4f7f\u7528\uff05\u6765\u5b9a\u4f4d\u80cc\u666f\u56fe\u50cf<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528\uff05\u8bbe\u7f6e\u9875\u9762\u4e0a\u7684\u56fe\u50cf\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-position_pixel\" rel=\"noreferrer noopener\">\u5982\u4f55\u4f7f\u7528\u50cf\u7d20\u6765\u5b9a\u4f4d\u80cc\u666f\u56fe\u50cf<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u50cf\u7d20\u8bbe\u7f6e\u9875\u9762\u4e0a\u7684\u56fe\u50cf\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">background-repeat&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>\u8bbe\u7f6e\u5982\u4f55\u5e73\u94fa\u5bf9\u8c61\u7684 background-image \u5c5e\u6027\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u91cd\u590dbackground-image\u7684\u5782\u76f4\u548c\u6c34\u5e73\u65b9\u5411\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"240\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-7.png\" alt=\"\" class=\"wp-image-1087\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-7.png 446w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-7-300x161.png 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/a><\/figure>\n\n\n\n<p>\u53c2\u8fd9\u4e2a\u5730\u5740\u4e2d\u7684 demo \u8fdb\u884c\u7ec3\u4e60\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/pr-background-repeat.html\">https:\/\/www.runoob.com\/cssref\/pr-background-repeat.html<\/a><\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-repeat\" rel=\"noreferrer noopener\">\u5982\u4f55\u5728\u5782\u76f4\u548c\u6c34\u5e73\u65b9\u5411\u91cd\u590d\u80cc\u666f\u56fe\u50cf<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u5728\u5782\u76f4\u548c\u6c34\u5e73\u65b9\u5411\u91cd\u590d\u80cc\u666f\u56fe\u50cf\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-repeatx\" rel=\"noreferrer noopener\">\u5982\u4f55\u91cd\u590d\u80cc\u666f\u56fe\u50cf\u4ec5\u6c34\u5e73\u65b9\u5411<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u91cd\u590d\u80cc\u666f\u56fe\u50cf\u4ec5\u6c34\u5e73\u65b9\u5411\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_background-repeat_no-repeat\" rel=\"noreferrer noopener\">\u5982\u4f55\u663e\u793a\u80cc\u666f\u56fe\u50cf\u53ea\u6709\u4e00\u6b21<\/a><br>\u8fd9\u4e2a\u4f8b\u5b50\u6f14\u793a\u4e86\u5982\u4f55\u663e\u793a\u4e00\u4e2a\u80cc\u666f\u56fe\u7247\u6ca1\u6709\u91cd\u590d\u53ea\u6709\u4e00\u6b21\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">background-size&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>background-size \u8bbe\u7f6e\u80cc\u666f\u56fe\u7247\u5927\u5c0f\u3002\u56fe\u7247\u53ef\u4ee5\u4fdd\u6709\u5176\u539f\u6709\u7684\u5c3a\u5bf8\uff0c\u6216\u8005\u62c9\u4f38\u5230\u65b0\u7684\u5c3a\u5bf8\uff0c\u6216\u8005\u5728\u4fdd\u6301\u5176\u539f\u6709\u6bd4\u4f8b\u7684\u540c\u65f6\u7f29\u653e\u5230\u5143\u7d20\u7684\u53ef\u7528\u7a7a\u95f4\u7684\u5c3a\u5bf8\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>div\n{\n    background:url(img_flwr.gif);\n    background-size:80px 60px;\n    background-repeat:no-repeat;\n}<\/code><\/pre>\n\n\n\n<p>\u53c2\u8fd9\u4e2a\u5730\u5740\u4e2d\u7684 demo \u8fdb\u884c\u7ec3\u4e60\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/css3-pr-background-size.html\">https:\/\/www.runoob.com\/cssref\/css3-pr-background-size.html<\/a><\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss3_background-size2\" rel=\"noreferrer noopener\">\u62c9\u4f38\u80cc\u666f\u56fe\u50cf<\/a><br>\u62c9\u4f38\u80cc\u666f\u56fe\u50cf\u5b8c\u5168\u8986\u76d6\u5185\u5bb9\u9762\u79ef\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss3_background-size3\" rel=\"noreferrer noopener\">\u56db\u4e2a\u80cc\u666f\u56fe\u50cf\u56fe\u50cf\u6a2a\u5411\u62c9\u4f38<\/a><br>\u62c9\u4f384\u4e2a\u6a2a\u5411\u80cc\u666f\u56fe\u7247\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">border&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>border \u662f\u8fb9\u6846\u5c5e\u6027\u7684\u7b80\u5199\u5c5e\u6027\u3002<\/p>\n\n\n\n<p>CSS border \u5c5e\u6027\u7528\u4e8e\u6307\u5b9a\u5143\u7d20\u8fb9\u6846\u7684\u6837\u5f0f\u3001\u5bbd\u5ea6\u548c\u989c\u8272\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u8bbe\u7f6e\u7684\u5c5e\u6027\u5206\u522b\uff08\u6309\u987a\u5e8f\uff09\uff1aborder-width, border-style \u548c border-color\u3002<\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u53ea\u8bbe\u7f6e\u4e00\u4e2a\u503c\uff0c\u4f8b\u5982&nbsp;<strong>border\uff1a\uff03FF0000;<\/strong>&nbsp;\u662f\u6b63\u786e\u7684\uff0c\u5176\u4ed6\u503c\u4f1a\u8bbe\u7f6e\u6210\u5bf9\u5e94\u5c5e\u6027\u7684\u521d\u59cb\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* \u8fb9\u6846\u6837\u5f0f *\/\nborder: solid;\n\n\/* \u8fb9\u6846\u5bbd\u5ea6 | \u8fb9\u6846\u6837\u5f0f *\/\nborder: 2px dotted;\n\n\/* \u8fb9\u6846\u6837\u5f0f | \u8fb9\u6846\u989c\u8272 *\/\nborder: outset #f33;\n\n\/* \u8fb9\u6846\u5bbd\u5ea6 | \u8fb9\u6846\u6837\u5f0f | \u8fb9\u6846\u989c\u8272 *\/\nborder: medium dashed green;\n\n\/* \u5168\u5c40\u503c *\/\nborder: inherit;\nborder: initial;\nborder: unset;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"195\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-8.png\" alt=\"\" class=\"wp-image-1088\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-8.png 443w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-8-300x132.png 300w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">border-bottom&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>border-bottom\u7f29\u5199\u5c5e\u6027\u8bbe\u7f6e\u4e00\u4e2a\u58f0\u660e\u4e2d\u6240\u6709\u5e95\u90e8\u8fb9\u6846\u5c5e\u6027\u3002\u53ef\u4ee5\u8bbe\u7f6e\u7684\u5c5e\u6027\u5206\u522b\uff08\u6309\u987a\u5e8f\uff09\uff1aborder-bottom-width, border-bottom-style,\u548cborder-bottom-color.\u5982\u679c\u4e0a\u8ff0\u503c\u7f3a\u5c11\u4e00\u4e2a\u6ca1\u6709\u5173\u7cfb\uff0c\u4f8b\u5982border-bottom\uff1a\uff03FF0000;\u662f\u5141\u8bb8\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">border-color&nbsp;\u5c5e\u6027<\/h2>\n\n\n\n<p>border-color\u5c5e\u6027\u8bbe\u7f6e\u4e00\u4e2a\u5143\u7d20\u7684\u56db\u4e2a\u8fb9\u6846\u989c\u8272\u3002\u6b64\u5c5e\u6027\u53ef\u4ee5\u6709\u4e00\u5230\u56db\u4e2a\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p\n{\nborder-style:solid;\nborder-color:#ff0000 #0000ff;\n}<\/code><\/pre>\n\n\n\n<p>demo \u793a\u4f8b\u89c1\uff1a<a href=\"https:\/\/www.runoob.com\/try\/try.php?filename=trycss_border-color\">https:\/\/www.runoob.com\/try\/try.php?filename=trycss_border-color<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS3&nbsp;\u5706\u89d2<\/h2>\n\n\n\n<p>\u4f7f\u7528 CSS3 border-radius \u5c5e\u6027\uff0c\u4f60\u53ef\u4ee5\u7ed9\u4efb\u4f55\u5143\u7d20\u5236\u4f5c &#8220;\u5706\u89d2&#8221;\u3002<\/p>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/css3\/css3-border-radius.html\">https:\/\/www.runoob.com\/css3\/css3-border-radius.html<\/a><\/p>\n\n\n\n<p>CSS3&nbsp;\u6e10\u53d8<\/p>\n\n\n\n<p>CSS3 \u5b9a\u4e49\u4e86\u4e24\u79cd\u7c7b\u578b\u7684\u6e10\u53d8\uff08gradients\uff09\uff1a<\/p>\n\n\n\n<ul>\n<li><strong>\u7ebf\u6027\u6e10\u53d8\uff08Linear Gradients\uff09- \u5411\u4e0b\/\u5411\u4e0a\/\u5411\u5de6\/\u5411\u53f3\/\u5bf9\u89d2\u65b9\u5411<\/strong><\/li>\n\n\n\n<li><strong>\u5f84\u5411\u6e10\u53d8\uff08Radial Gradients\uff09- \u7531\u5b83\u4eec\u7684\u4e2d\u5fc3\u5b9a\u4e49<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u7ebf\u6027\u6e10\u53d8\u76f8\u5173\u5c5e\u6027\uff1a<a href=\"https:\/\/www.runoob.com\/cssref\/pr-background-image.html\" rel=\"noreferrer noopener\" target=\"_blank\">background-image<\/a>\u3002<\/p>\n\n\n\n<p>\u7ebf\u6027\u6e10\u53d8\u5728\u7ebf\u5de5\u5177\uff1a<a href=\"https:\/\/c.runoob.com\/more\/gradients\/#LemonLime\" target=\"_blank\" rel=\"noreferrer noopener\">\u6e10\u53d8\u5728\u7ebf\u5de5\u5177<\/a>\u3002<\/p>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/css3\/css3-gradients.html\">https:\/\/www.runoob.com\/css3\/css3-gradients.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading alignwide\" id=\"we-re-a-studio-in-berlin-with-an-international-practice-in-architecture-urban-planning-and-interior-design-we-believe-in-sharing-knowledge-and-promoting-dialogue-to-increase-the-creative-potential-of-collaboration\" style=\"font-size:48px;line-height:1.1\">CSS3 \u6587\u672c\u6548\u679c<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">CSS3 \u7684\u6587\u672c\u9634\u5f71<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta charset=\"utf-8\"&gt; \n&lt;title&gt;\u83dc\u9e1f\u6559\u7a0b(runoob.com)&lt;\/title&gt; \n&lt;style&gt;\nh1\n{\n\ttext-shadow: 5px 5px 5px #FF0000;\n}\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;h1&gt;Text-shadow effect!&lt;\/h1&gt;\n\n&lt;p&gt;&lt;b&gt;\u6ce8\u610f:&lt;\/b&gt; Internet Explorer 9 \u4ee5\u53ca\u66f4\u65e9\u7248\u672c\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 text-shadow\u5c5e\u6027.&lt;\/p&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>\u5c55\u793a\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"125\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-9.png\" alt=\"\" class=\"wp-image-1092\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-9.png 519w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-9-300x72.png 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">CSS3 box-shadow\u5c5e\u6027<\/h2>\n\n\n\n<p>CSS3 \u4e2d CSS3 box-shadow \u5c5e\u6027\u9002\u7528\u4e8e\u76d2\u5b50\u9634\u5f71<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta charset=\"utf-8\"&gt; \n&lt;title&gt;\u83dc\u9e1f\u6559\u7a0b(runoob.com)&lt;\/title&gt; \n&lt;style&gt; \ndiv\n{\n\twidth:300px;\n\theight:100px;\n\tbackground-color:yellow;\n\tbox-shadow: 10px 10px 5px #888888;\n}\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;div&gt;&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>\u5c55\u793a\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"156\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-10.png\" alt=\"\" class=\"wp-image-1093\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-10.png 355w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-10-300x132.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/figure>\n\n\n\n<p><strong>\u7ed9\u9634\u5f71\u90e8\u5206\u589e\u52a0\u989c\u8272\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style&gt;\ndiv {\n    width: 300px;\n    height: 100px;\n    padding: 15px;\n    background-color: yellow;\n    box-shadow: 10px 10px grey;\n}\n&lt;\/style&gt;\n\n&lt;div&gt;This is a div element with a box-shadow&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"364\" height=\"169\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-11.png\" alt=\"\" class=\"wp-image-1094\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-11.png 364w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-11-300x139.png 300w\" sizes=\"(max-width: 364px) 100vw, 364px\" \/><\/a><\/figure>\n\n\n\n<p>\u66f4\u591a\u6587\u672c\u9634\u5f71\u6548\u679c\u89c1\uff1a<a href=\"https:\/\/www.runoob.com\/css3\/css3-text-effects.html\">https:\/\/www.runoob.com\/css3\/css3-text-effects.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS3 Text Overflow\u5c5e\u6027<\/h2>\n\n\n\n<p>CSS3\u6587\u672c\u6ea2\u51fa\u5c5e\u6027\u6307\u5b9a\u5e94\u5411\u7528\u6237\u5982\u4f55\u663e\u793a\u6ea2\u51fa\u5185\u5bb9<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1291\" height=\"309\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12.png\" alt=\"\" class=\"wp-image-1095\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12.png 1291w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12-300x72.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12-1024x245.png 1024w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12-768x184.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12-1222x292.png 1222w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-12-922x221.png 922w\" sizes=\"(max-width: 1291px) 100vw, 1291px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">CSS3&nbsp;\u5b57\u4f53<\/h2>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">CSS3 @font-face \u89c4\u5219<\/mark><\/strong><\/p>\n\n\n\n<p>\u4f7f\u7528\u4ee5\u524d CSS \u7684\u7248\u672c\uff0c\u7f51\u9875\u8bbe\u8ba1\u5e08\u4e0d\u5f97\u4e0d\u4f7f\u7528\u7528\u6237\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u5b89\u88c5\u7684\u5b57\u4f53\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528&nbsp;<strong>CSS3<\/strong>\uff0c\u7f51\u9875\u8bbe\u8ba1\u5e08\u53ef\u4ee5\u4f7f\u7528\u4ed6\/\u5979\u559c\u6b22\u7684\u4efb\u4f55\u5b57\u4f53\u3002<\/p>\n\n\n\n<p>\u5f53\u4f60\u53d1\u73b0\u60a8\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u6587\u4ef6\u65f6\uff0c\u53ea\u9700\u7b80\u5355\u7684\u5c06\u5b57\u4f53\u6587\u4ef6\u5305\u542b\u5728\u7f51\u7ad9\u4e2d\uff0c\u5b83\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u7ed9\u9700\u8981\u7684\u7528\u6237\u3002<\/p>\n\n\n\n<p>\u60a8\u6240\u9009\u62e9\u7684\u5b57\u4f53\u5728\u65b0\u7684&nbsp;<strong>CSS3<\/strong>&nbsp;\u7248\u672c\u6709\u5173\u4e8e&nbsp;<strong>@font-face<\/strong>&nbsp;\u89c4\u5219\u63cf\u8ff0\u3002<\/p>\n\n\n\n<p>\u60a8&#8221;\u81ea\u5df1\u7684&#8221;\u7684\u5b57\u4f53\u662f\u5728&nbsp;<strong>CSS3 @font-face<\/strong>&nbsp;\u89c4\u5219\u4e2d\u5b9a\u4e49\u7684\u3002<\/p>\n\n\n\n<p>\u5982\u9700\u4e3a HTML \u5143\u7d20\u4f7f\u7528\u5b57\u4f53\uff0c\u8bf7\u901a\u8fc7 font-family \u5c5e\u6027\u6765\u5f15\u7528\u5b57\u4f53\u7684\u540d\u79f0 (myFirstFont)\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style&gt; \n@font-face\n{\n    font-family: myFirstFont;\n    src: url(sansation_light.woff);\n}\n \ndiv\n{\n    font-family:myFirstFont;\n}\n&lt;\/style&gt;<\/code><\/pre>\n\n\n\n<p><strong>\u4f7f\u7528\u7c97\u4f53\u6587\u672c\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@font-face\n{\n    font-family: myFirstFont;\n    src: url(sansation_bold.woff);\n    font-weight:bold;\n}<\/code><\/pre>\n\n\n\n<p>\u4e0b\u8868\u5217\u51fa\u4e86\u6240\u6709\u7684\u5b57\u4f53\u63cf\u8ff0\u548c\u91cc\u9762\u7684@font-face\u89c4\u5219\u5b9a\u4e49\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"725\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-13.png\" alt=\"\" class=\"wp-image-1096\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-13.png 661w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-13-274x300.png 274w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><\/a><\/figure>\n\n\n\n<p>\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta charset=\"utf-8\"&gt; \n&lt;style&gt; \n@font-face\n{\n\tfont-family: myFirstFont;\n\tsrc: url('Sansation_Light.ttf')\n\t\t,url('Sansation_Light.eot'); \/* IE9 *\/\n}\n\ndiv\n{\n\tfont-family:myFirstFont;\n}\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;p&gt;&lt;b&gt;\u6ce8\u610f:&lt;\/b&gt; Internet Explorer 9 \u53ea\u652f\u6301 .eot \u683c\u5f0f\u7684\u5b57\u4f53.&lt;\/p&gt;\n\n&lt;div&gt;\n\u4f7f\u7528 CSS3,\u7f51\u7ad9\u7ec8\u4e8e\u53ef\u4ee5\u4f7f\u7528\u5b57\u4f53\u4ee5\u5916\u7684\u9884\u5148\u9009\u62e9\u201c\u5408\u6cd5\u201d\u5b57\u4f53\n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p><strong>\u5c55\u793a\u6548\u679c\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"131\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-14.png\" alt=\"\" class=\"wp-image-1097\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-14.png 472w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-14-300x83.png 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u66f4\u591a\u6837\u5f0f\u89c1\uff1a<\/strong><a href=\"https:\/\/www.runoob.com\/cssref\/css-selectors.html\">https:\/\/www.runoob.com\/cssref\/css-selectors.html<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5143\u7d20\u9009\u62e9\u5668\uff08Element Selector\uff09\uff1a\u901a\u8fc7\u5143\u7d20\u540d\u79f0\u9009\u62e9 HTML \u5143\u7d20\u3002 \u5982\u4e0b\u4ee3\u7801\uff0cp&nbsp;\u9009&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1062,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[61],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u5143\u7d20\u9009\u62e9\u5668\uff08Element Selector\uff09\uff1a\u901a\u8fc7\u5143\u7d20\u540d\u79f0\u9009\u62e9 HTML \u5143\u7d20\u3002 \u5982\u4e0b\u4ee3\u7801\uff0cp&nbsp;\u9009...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-27T03:23:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-27T13:48:32+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/css1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"220\" \/>\n\t<meta property=\"og:image:height\" content=\"220\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f\",\"datePublished\":\"2024-07-27T03:23:56+00:00\",\"dateModified\":\"2024-07-27T13:48:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\"},\"wordCount\":252,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"keywords\":[\"html_css_js\"],\"articleSection\":[\"\u524d\u7aef\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\",\"name\":\"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2024-07-27T03:23:56+00:00\",\"dateModified\":\"2024-07-27T13:48:32+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/","og_locale":"zh_CN","og_type":"article","og_title":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u5143\u7d20\u9009\u62e9\u5668\uff08Element Selector\uff09\uff1a\u901a\u8fc7\u5143\u7d20\u540d\u79f0\u9009\u62e9 HTML \u5143\u7d20\u3002 \u5982\u4e0b\u4ee3\u7801\uff0cp&nbsp;\u9009...","og_url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2024-07-27T03:23:56+00:00","article_modified_time":"2024-07-27T13:48:32+00:00","og_image":[{"width":220,"height":220,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/css1.jpg","type":"image\/jpeg"}],"author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f","datePublished":"2024-07-27T03:23:56+00:00","dateModified":"2024-07-27T13:48:32+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/"},"wordCount":252,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"keywords":["html_css_js"],"articleSection":["\u524d\u7aef\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/","url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/","name":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2024-07-27T03:23:56+00:00","dateModified":"2024-07-27T13:48:32+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"CSS \u57fa\u7840\uff08\u4e00\uff09\uff1a\u9009\u62e9\u5668\u3001\u57fa\u672c CSS \u6837\u5f0f"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1083"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":6,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":1191,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1083\/revisions\/1191"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/1062"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}