{"id":1060,"date":"2024-07-27T01:00:24","date_gmt":"2024-07-26T17:00:24","guid":{"rendered":"http:\/\/codermr.com\/?p=1060"},"modified":"2024-07-27T10:24:33","modified_gmt":"2024-07-27T02:24:33","slug":"html_css_article2","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/","title":{"rendered":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4f7f\u7528 CSS \u7684\u51e0\u79cd\u65b9\u5f0f<\/h2>\n\n\n\n<ul>\n<li><strong>\u5185\u8054\u6837\u5f0f<\/strong> &#8211; \u5728HTML\u5143\u7d20\u4e2d\u4f7f\u7528&#8221;style&#8221;<strong>\u00a0\u5c5e\u6027<\/strong><\/li>\n\n\n\n<li><strong>\u5185\u90e8\u6837\u5f0f\u8868<\/strong> -\u5728HTML\u6587\u6863\u5934\u90e8 &lt;head> \u533a\u57df\u4f7f\u7528&lt;style><strong>\u00a0\u5143\u7d20<\/strong>\u00a0\u6765\u5305\u542bCSS<\/li>\n\n\n\n<li><strong>\u5916\u90e8\u5f15\u7528<\/strong> &#8211; \u4f7f\u7528\u5916\u90e8 CSS<strong>\u00a0\u6587\u4ef6<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u5185\u8054\u6837\u5f0f<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p style=\"color:blue;margin-left:20px;\">\u8fd9\u662f\u4e00\u4e2a\u6bb5\u843d\u3002&lt;\/p><\/code><\/pre>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u5185\u90e8\u6837\u5f0f\u8868<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;head>\n&lt;style type=\"text\/css\">\nbody {background-color:yellow;}\np {color:blue;}\n&lt;\/style>\n&lt;\/head><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u7528\u57fa\u7840 CSS \u5c5e\u6027<\/h2>\n\n\n\n<p>\uff081\uff09\u53ef\u4ee5\u4f7f\u7528font-family\uff08\u5b57\u4f53\uff09\uff0ccolor\uff08\u989c\u8272\uff09\uff0c\u548cfont-size\uff08\u5b57\u4f53\u5927\u5c0f\uff09\u5c5e\u6027\u6765\u5b9a\u4e49\u5b57\u4f53\u7684\u6837\u5f0f :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h1 style=\"font-family:verdana;\">\u4e00\u4e2a\u6807\u9898&lt;\/h1>\n&lt;p style=\"font-family:arial;color:red;font-size:20px;\">\u4e00\u4e2a\u6bb5\u843d\u3002&lt;\/p><\/code><\/pre>\n\n\n\n<p>\uff082\uff09\u4f7f\u7528 text-align\uff08\u6587\u5b57\u5bf9\u9f50\uff09\u5c5e\u6027\u6307\u5b9a\u6587\u672c\u7684\u6c34\u5e73\u4e0e\u5782\u76f4\u5bf9\u9f50\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h1 style=\"text-align:center;\">\u5c45\u4e2d\u5bf9\u9f50\u7684\u6807\u9898&lt;\/h1>\n&lt;p>\u8fd9\u662f\u4e00\u4e2a\u6bb5\u843d\u3002&lt;\/p><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5df2\u5f03\u7528\u7684\u6807\u7b7e\u548c\u5c5e\u6027<\/h2>\n\n\n\n<p>\u5728HTML 4, \u539f\u6765\u652f\u6301\u5b9a\u4e49HTML\u5143\u7d20\u6837\u5f0f\u7684\u6807\u7b7e\u548c\u5c5e\u6027\u5df2\u88ab\u5f03\u7528\u3002\u8fd9\u4e9b\u6807\u7b7e\u5c06\u4e0d\u652f\u6301\u65b0\u7248\u672c\u7684HTML\u6807\u7b7e\u3002<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u4e0d\u5efa\u8bae\u4f7f\u7528\u7684\u6807\u7b7e\u6709: &lt;font>, &lt;center>, &lt;strike><\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u4e0d\u5efa\u8bae\u4f7f\u7528\u7684\u5c5e\u6027: color \u548c bgcolor.<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f &lt;a> \u6807\u7b7e\u94fe\u63a5\u4e0d\u5e26\u4e0b\u5212\u7ebf<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;a href=\"http:\/\/codermr.com\/\" style=\"text-decoration:none;\">\u8bbf\u95ee\u7801\u5148\u751f\u7684\u535a\u5ba2&lt;\/a><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728 &lt;p> \u6807\u7b7e\u4e2d\u6dfb\u52a0 &lt;img> \u6807\u7b7e<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p>\n\u8fd9\u662f\u4e00\u4e9b\u6587\u672c\u3002 \n&lt;img src=\"smiley.gif\" alt=\"Smiley face\" align=\"middle\" width=\"32\" height=\"32\"> \u8fd9\u662f\u4e00\u4e9b\u6587\u672c\u3002\n&lt;\/p><\/code><\/pre>\n\n\n\n<p><strong>\u6ce8\u610f:<\/strong>\u5728HTML 4\u4e2d align \u5c5e\u6027\u5df2\u5e9f\u5f03\uff0cHTML5 \u5df2\u4e0d\u652f\u6301\u8be5\u5c5e\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528 CSS \u4ee3\u66ff\u3002<\/p>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/html\/html-images.html\">https:\/\/www.runoob.com\/html\/html-images.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6d6e\u52a8\u56fe\u7247<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p>\n&lt;img src=\"smiley.gif\" alt=\"Smiley face\" style=\"float:left\" width=\"32\" height=\"32\">\n\u4e00\u4e2a\u5e26\u56fe\u7247\u7684\u6bb5\u843d\uff0c\u56fe\u7247\u6d6e\u52a8\u5728\u8fd9\u4e2a\u6587\u672c\u7684\u5de6\u8fb9\u3002\n&lt;\/p>\n\n&lt;p>\n&lt;img src=\"smiley.gif\" alt=\"Smiley face\" style=\"float:right\" width=\"32\" height=\"32\">\n\u4e00\u4e2a\u5e26\u56fe\u7247\u7684\u6bb5\u843d\uff0c\u56fe\u7247\u6d6e\u52a8\u5728\u8fd9\u4e2a\u6587\u672c\u7684\u53f3\u8fb9\u3002\n&lt;\/p><\/code><\/pre>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/html\/html-images.html\">https:\/\/www.runoob.com\/html\/html-images.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56fe\u7247\u94fe\u63a5\u3001\u56fe\u7247\u8fb9\u6846<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p>\n\u521b\u5efa\u56fe\u7247\u94fe\u63a5:\n&lt;a href=\"http:\/\/www.runoob.com\/html\/html-tutorial.html\">\n&lt;img <strong>border=\"10\"<\/strong> src=\"smiley.gif\" alt=\"HTML \u6559\u7a0b\" width=\"32\" height=\"32\">\n&lt;\/a>\n&lt;\/p>\n\n&lt;p>\n\u65e0\u8fb9\u6846\u7684\u56fe\u7247\u94fe\u63a5:\n&lt;a href=\"http:\/\/www.runoob.com\/html\/html-tutorial.html\">\n&lt;img border=\"0\" src=\"smiley.gif\" alt=\"HTML \u6559\u7a0b\" width=\"32\" height=\"32\">\n&lt;\/a>\n&lt;\/p><\/code><\/pre>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/html\/html-images.html\">https:\/\/www.runoob.com\/html\/html-images.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML \u8868\u683c<\/h2>\n\n\n\n<p>HTML \u8868\u683c\u7531&nbsp;<strong>&lt;table&gt;<\/strong>&nbsp;\u6807\u7b7e\u6765\u5b9a\u4e49\u3002<\/p>\n\n\n\n<p>HTML \u8868\u683c\u662f\u4e00\u79cd\u7528\u4e8e\u5c55\u793a\u7ed3\u6784\u5316\u6570\u636e\u7684\u6807\u8bb0\u8bed\u8a00\u5143\u7d20\u3002<\/p>\n\n\n\n<p>\u6bcf\u4e2a\u8868\u683c\u5747\u6709\u82e5\u5e72\u884c\uff08\u7531&nbsp;<strong>&lt;tr&gt;<\/strong>&nbsp;\u6807\u7b7e\u5b9a\u4e49\uff09\uff0c\u6bcf\u884c\u88ab\u5206\u5272\u4e3a\u82e5\u5e72\u5355\u5143\u683c\uff08\u7531&nbsp;<strong>&lt;td&gt;<\/strong>&nbsp;\u6807\u7b7e\u5b9a\u4e49\uff09\uff0c\u8868\u683c\u53ef\u4ee5\u5305\u542b\u6807\u9898\u884c\uff08<strong>&lt;th&gt;<\/strong>\uff09\u7528\u4e8e\u5b9a\u4e49\u5217\u7684\u6807\u9898\u3002<\/p>\n\n\n\n<ul>\n<li><strong>tr<\/strong>\uff1atr \u662f table row \u7684\u7f29\u5199\uff0c\u8868\u793a\u8868\u683c\u7684\u4e00\u884c\u3002<\/li>\n\n\n\n<li><strong>td<\/strong>\uff1atd \u662f table data \u7684\u7f29\u5199\uff0c\u8868\u793a\u8868\u683c\u7684\u6570\u636e\u5355\u5143\u683c\u3002<\/li>\n\n\n\n<li><strong>th<\/strong>\uff1ath \u662f table header\u7684\u7f29\u5199\uff0c\u8868\u793a\u8868\u683c\u7684\u8868\u5934\u5355\u5143\u683c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6570\u636e\u5355\u5143\u683c\u53ef\u4ee5\u5305\u542b\u6587\u672c\u3001\u56fe\u7247\u3001\u5217\u8868\u3001\u6bb5\u843d\u3001\u8868\u5355\u3001\u6c34\u5e73\u7ebf\u3001\u8868\u683c\u7b49\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;table>\n  &lt;thead>\n    &lt;tr>\n      &lt;th>\u5217\u6807\u98981&lt;\/th>\n      &lt;th>\u5217\u6807\u98982&lt;\/th>\n      &lt;th>\u5217\u6807\u98983&lt;\/th>\n    &lt;\/tr>\n  &lt;\/thead>\n  &lt;tbody>\n    &lt;tr>\n      &lt;td>\u884c1\uff0c\u52171&lt;\/td>\n      &lt;td>\u884c1\uff0c\u52172&lt;\/td>\n      &lt;td>\u884c1\uff0c\u52173&lt;\/td>\n    &lt;\/tr>\n    &lt;tr>\n      &lt;td>\u884c2\uff0c\u52171&lt;\/td>\n      &lt;td>\u884c2\uff0c\u52172&lt;\/td>\n      &lt;td>\u884c2\uff0c\u52173&lt;\/td>\n    &lt;\/tr>\n  &lt;\/tbody>\n&lt;\/table><\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u7684\u8868\u683c\u5b9e\u4f8b\u4ee3\u7801\u4e2d\uff0c&lt;table&gt; \u5143\u7d20\u8868\u793a\u6574\u4e2a\u8868\u683c\uff0c\u5b83\u5305\u542b\u4e24\u4e2a\u4e3b\u8981\u90e8\u5206\uff1a&lt;thead&gt; \u548c &lt;tbody&gt;\u3002<\/p>\n\n\n\n<ul>\n<li><strong>&lt;thead > \u7528\u4e8e\u5b9a\u4e49\u8868\u683c\u7684\u6807\u9898\u90e8\u5206:<\/strong>\u00a0\u5728 &lt;thead > \u4e2d\uff0c\u4f7f\u7528 &lt;th > \u5143\u7d20\u5b9a\u4e49\u5217\u7684\u6807\u9898\uff0c\u4ee5\u4e0a\u5b9e\u4f8b\u4e2d\u5217\u6807\u9898\u5206\u522b\u4e3a&#8221;\u5217\u6807\u98981&#8243;\uff0c&#8221;\u5217\u6807\u98982&#8243;\u548c&#8221;\u5217\u6807\u98983&#8243;\u3002<\/li>\n\n\n\n<li><strong>&lt;tbody > \u7528\u4e8e\u5b9a\u4e49\u8868\u683c\u7684\u4e3b\u4f53\u90e8\u5206:<\/strong>\u00a0\u5728 &lt;tbody > \u4e2d\uff0c\u4f7f\u7528 &lt;tr > \u5143\u7d20\u5b9a\u4e49\u884c\uff0c\u5e76\u5728\u6bcf\u884c\u4e2d\u4f7f\u7528 &lt;td > \u5143\u7d20\u5b9a\u4e49\u5355\u5143\u683c\u6570\u636e\uff0c\u4ee5\u4e0a\u5b9e\u4f8b\u4e2d\u6709\u4e24\u884c\u6570\u636e\uff0c\u6bcf\u884c\u5305\u542b\u4e09\u4e2a\u5355\u5143\u683c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u4f7f\u7528 &lt;th > \u5143\u7d20\u5b9a\u4e49\u5217\u6807\u9898\uff0c\u53ef\u4ee5\u4f7f\u5176\u5728\u8868\u683c\u4e2d\u4ee5\u7c97\u4f53\u663e\u793a\uff0c\u4e0e\u666e\u901a\u5355\u5143\u683c\u533a\u5206\u5f00\u6765\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML \u8868\u683c\u548c\u8fb9\u6846\u5c5e\u6027<\/h2>\n\n\n\n<p>\u9ed8\u8ba4\u8868\u683c\u4e0d\u663e\u793a\u8fb9\u6846\u3002\u4f7f\u7528\u8fb9\u6846\u5c5e\u6027 &lt;border> \u6765\u663e\u793a\u4e00\u4e2a\u5e26\u6709\u8fb9\u6846\u7684\u8868\u683c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;table border=\"1\">\n    &lt;tr>\n        &lt;td>Row 1, cell 1&lt;\/td>\n        &lt;td>Row 1, cell 2&lt;\/td>\n    &lt;\/tr>\n&lt;\/table><\/code><\/pre>\n\n\n\n<p>\u66f4\u591a\u793a\u4f8b\uff08<a href=\"https:\/\/www.runoob.com\/html\/html-tables.html\">https:\/\/www.runoob.com\/html\/html-tables.html<\/a>\uff09\uff1a<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_tables3\" rel=\"noreferrer noopener\">\u6ca1\u6709\u8fb9\u6846\u7684\u8868\u683c<\/a><br>\u672c\u4f8b\u6f14\u793a\u4e00\u4e2a\u6ca1\u6709\u8fb9\u6846\u7684\u8868\u683c\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_table_headers\" rel=\"noreferrer noopener\">\u8868\u683c\u4e2d\u7684\u8868\u5934(Heading)<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u663e\u793a\u8868\u683c\u8868\u5934\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_tables2\" rel=\"noreferrer noopener\">\u5e26\u6709\u6807\u9898\u7684\u8868\u683c<\/a><br>\u672c\u4f8b\u6f14\u793a\u4e00\u4e2a\u5e26\u6807\u9898 (caption) \u7684\u8868\u683c<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_table_span\" rel=\"noreferrer noopener\">\u8de8\u884c\u6216\u8de8\u5217\u7684\u8868\u683c\u5355\u5143\u683c<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u5b9a\u4e49\u8de8\u884c\u6216\u8de8\u5217\u7684\u8868\u683c\u5355\u5143\u683c\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_table_elements\" rel=\"noreferrer noopener\">\u8868\u683c\u5185\u7684\u6807\u7b7e<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u5728\u4e0d\u540c\u7684\u5143\u7d20\u5185\u663e\u793a\u5143\u7d20\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_table_cellpadding\" rel=\"noreferrer noopener\">\u5355\u5143\u683c\u8fb9\u8ddd(Cell padding)<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Cell padding \u6765\u521b\u5efa\u5355\u5143\u683c\u5185\u5bb9\u4e0e\u5176\u8fb9\u6846\u4e4b\u95f4\u7684\u7a7a\u767d\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_table_cellspacing\" rel=\"noreferrer noopener\">\u5355\u5143\u683c\u95f4\u8ddd(Cell spacing)<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Cell spacing \u589e\u52a0\u5355\u5143\u683c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.jyshare.com\/codedemo\/3187\" target=\"_blank\" rel=\"noreferrer noopener\">\u6f02\u4eae\u7684\u8868\u683c<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML \u5217\u8868<\/h2>\n\n\n\n<p><strong>\u65e0\u5e8f\u5217\u8868<\/strong><\/p>\n\n\n\n<p>\u65e0\u5e8f\u5217\u8868\u4f7f\u7528 &lt;ul> \u6807\u7b7e\uff0c\u6bcf\u884c\u4f7f\u7528\u7c97\u4f53\u5706\u70b9\uff08\u5178\u578b\u7684\u5c0f\u9ed1\u5706\u5708\uff09\u8fdb\u884c\u6807\u8bb0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;ul>\n&lt;li>Coffee&lt;\/li>\n&lt;li>Milk&lt;\/li>\n&lt;\/ul><\/code><\/pre>\n\n\n\n<p><strong>\u6709\u5e8f\u5217\u8868<\/strong><\/p>\n\n\n\n<p>\u6709\u5e8f\u5217\u8868\u59cb\u4e8e &lt;ol> \u6807\u7b7e\u3002\u6bcf\u4e2a\u5217\u8868\u9879\u59cb\u4e8e &lt;li> \u6807\u7b7e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;ol>\n&lt;li>Coffee&lt;\/li>\n&lt;li>Milk&lt;\/li>\n&lt;\/ol><\/code><\/pre>\n\n\n\n<p><strong>\u66f4\u591a\u793a\u4f8b<\/strong>\uff08<a href=\"https:\/\/www.runoob.com\/html\/html-lists.html\">https:\/\/www.runoob.com\/html\/html-lists.html<\/a>\uff09\uff1a<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_lists_ordered\" rel=\"noreferrer noopener\">\u4e0d\u540c\u7c7b\u578b\u7684\u6709\u5e8f\u5217\u8868<\/a><br>\u672c\u4f8b\u6f14\u793a\u4e0d\u540c\u7c7b\u578b\u7684\u6709\u5e8f\u5217\u8868\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_lists_unordered\" rel=\"noreferrer noopener\">\u4e0d\u540c\u7c7b\u578b\u7684\u65e0\u5e8f\u5217\u8868<\/a><br>\u672c\u4f8b\u6f14\u793a\u4e0d\u540c\u7c7b\u578b\u7684\u65e0\u5e8f\u5217\u8868\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_lists2\" rel=\"noreferrer noopener\">\u5d4c\u5957\u5217\u8868<\/a><br>\u672c\u4f8b\u6f14\u793a\u5982\u4f55\u5d4c\u5957\u5217\u8868\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_nestedlists2\" rel=\"noreferrer noopener\">\u5d4c\u5957\u5217\u8868 2<\/a><br>\u672c\u4f8b\u6f14\u793a\u66f4\u590d\u6742\u7684\u5d4c\u5957\u5217\u8868\u3002<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/www.runoob.com\/try\/try.php?filename=tryhtml_lists3\" rel=\"noreferrer noopener\">\u81ea\u5b9a\u4e49\u5217\u8868<\/a><br>\u672c\u4f8b\u6f14\u793a\u4e00\u4e2a\u5b9a\u4e49\u5217\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 CSS \u7684\u51e0\u79cd\u65b9\u5f0f \u5185\u8054\u6837\u5f0f \u5185\u90e8\u6837\u5f0f\u8868 \u5e38\u7528\u57fa\u7840 CSS \u5c5e\u6027 \uff081\uff09\u53ef\u4ee5\u4f7f\u7528font-family\uff08&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1059,"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>HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img&gt;\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \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\/html_css_article2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img&gt;\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528 CSS \u7684\u51e0\u79cd\u65b9\u5f0f \u5185\u8054\u6837\u5f0f \u5185\u90e8\u6837\u5f0f\u8868 \u5e38\u7528\u57fa\u7840 CSS \u5c5e\u6027 \uff081\uff09\u53ef\u4ee5\u4f7f\u7528font-family\uff08...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-26T17:00:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-27T02:24:33+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/html1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"304\" \/>\n\t<meta property=\"og:image:height\" content=\"304\" \/>\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=\"2 \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\/html_css_article2\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868\",\"datePublished\":\"2024-07-26T17:00:24+00:00\",\"dateModified\":\"2024-07-27T02:24:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\"},\"wordCount\":155,\"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\/html_css_article2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\",\"name\":\"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2024-07-26T17:00:24+00:00\",\"dateModified\":\"2024-07-27T02:24:33+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868\"}]},{\"@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":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \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\/html_css_article2\/","og_locale":"zh_CN","og_type":"article","og_title":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u4f7f\u7528 CSS \u7684\u51e0\u79cd\u65b9\u5f0f \u5185\u8054\u6837\u5f0f \u5185\u90e8\u6837\u5f0f\u8868 \u5e38\u7528\u57fa\u7840 CSS \u5c5e\u6027 \uff081\uff09\u53ef\u4ee5\u4f7f\u7528font-family\uff08...","og_url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2024-07-26T17:00:24+00:00","article_modified_time":"2024-07-27T02:24:33+00:00","og_image":[{"width":304,"height":304,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/html1.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":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868","datePublished":"2024-07-26T17:00:24+00:00","dateModified":"2024-07-27T02:24:33+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/"},"wordCount":155,"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\/html_css_article2\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/","url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/","name":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868 - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2024-07-26T17:00:24+00:00","dateModified":"2024-07-27T02:24:33+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/html_css_article2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"HTML \u57fa\u7840\uff08\u4e8c\uff09\uff1a&lt;img>\u6807\u7b7e\u3001\u8868\u683c\u3001\u5217\u8868"}]},{"@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\/1060"}],"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=1060"}],"version-history":[{"count":5,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1060\/revisions"}],"predecessor-version":[{"id":1082,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1060\/revisions\/1082"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/1059"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}