{"id":8048,"date":"2024-01-10T11:08:50","date_gmt":"2024-01-10T03:08:50","guid":{"rendered":"http:\/\/www.aiersheng.cc\/?p=8048"},"modified":"2025-01-06T18:59:59","modified_gmt":"2025-01-06T10:59:59","slug":"%e6%9d%a8%e4%ba%a6%e6%b6%9b%e8%80%81%e5%b8%88%e5%88%86%e4%ba%abdreamweaver%e9%87%8d%e8%a6%81%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.aiersheng.cc\/?p=8048","title":{"rendered":"\u6768\u4ea6\u6d9b\u8001\u5e08\u5206\u4eabDreamweaver\u91cd\u8981\u7b14\u8bb0"},"content":{"rendered":"<h3>\u4e00. <strong>CSS \u57fa\u7840<\/strong><\/h3>\n<h4>1. <strong>\u57fa\u672c\u9009\u62e9\u5668<\/strong><\/h4>\n<p>\u57fa\u672c\u9009\u62e9\u5668\u7528\u4e8e\u9009\u53d6\u7f51\u9875\u4e0a\u7684 HTML \u5143\u7d20\u3002\u4ee5\u4e0b\u662f\u5e38\u7528\u7684\u57fa\u672c\u9009\u62e9\u5668\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u5143\u7d20\u9009\u62e9\u5668<\/strong>\uff1a\u9009\u62e9\u6307\u5b9a\u6807\u7b7e\u7684\u6240\u6709\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>p { color: red; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06\u9875\u9762\u4e2d\u6240\u6709 <code>&lt;p&gt;<\/code> \u6807\u7b7e\u7684\u6587\u5b57\u989c\u8272\u8bbe\u7f6e\u4e3a\u7ea2\u8272\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7c7b\u9009\u62e9\u5668<\/strong>\uff1a\u9009\u62e9\u6307\u5b9a\u7c7b\u540d\u7684\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>.my-class { font-size: 16px; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6240\u6709\u7c7b\u540d\u4e3a <code>my-class<\/code> \u7684\u5143\u7d20\u5b57\u4f53\u5927\u5c0f\u8bbe\u7f6e\u4e3a 16px\u3002<\/p>\n<\/li>\n<li>\n<p><strong>ID\u9009\u62e9\u5668<\/strong>\uff1a\u9009\u62e9\u6307\u5b9a ID \u7684\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>#my-id { background-color: blue; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06 ID \u4e3a <code>my-id<\/code> \u7684\u5143\u7d20\u80cc\u666f\u8272\u8bbe\u7f6e\u4e3a\u84dd\u8272\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>2. <strong>\u590d\u5408\u9009\u62e9\u5668<\/strong><\/h4>\n<p>\u590d\u5408\u9009\u62e9\u5668\u7531\u591a\u4e2a\u9009\u62e9\u5668\u7ec4\u5408\u800c\u6210\uff0c\u7528\u4e8e\u66f4\u7cbe\u786e\u5730\u9009\u62e9\u5143\u7d20\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u540e\u4ee3\u9009\u62e9\u5668<\/strong>\uff1a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u7684\u6240\u6709\u540e\u4ee3\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>div p { color: green; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6240\u6709 <code>&lt;div&gt;<\/code> \u6807\u7b7e\u5185\u7684 <code>&lt;p&gt;<\/code> \u6807\u7b7e\u6587\u5b57\u989c\u8272\u8bbe\u7f6e\u4e3a\u7eff\u8272\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5e76\u96c6\u9009\u62e9\u5668<\/strong>\uff1a\u5c06\u591a\u4e2a\u9009\u62e9\u5668\u7528\u9017\u53f7\u5206\u5f00\uff0c\u8868\u793a\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>h1, h2, h3 { margin: 10px; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06 <code>&lt;h1&gt;<\/code>, <code>&lt;h2&gt;<\/code>, <code>&lt;h3&gt;<\/code> \u6807\u7b7e\u7684\u5916\u8fb9\u8ddd\u90fd\u8bbe\u7f6e\u4e3a 10px\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6807\u7b7e\u6307\u5b9a\u5f0f<\/strong>\uff1a\u6839\u636e\u6807\u7b7e\u540d\u9009\u62e9\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<code>p { line-height: 1.5; }<\/code><br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6240\u6709 <code>&lt;p&gt;<\/code> \u6807\u7b7e\u7684\u884c\u9ad8\u8bbe\u7f6e\u4e3a 1.5\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>3. <strong>\u6d6e\u52a8\u4e0e\u6e05\u9664\u6d6e\u52a8<\/strong><\/h4>\n<p>\u6d6e\u52a8\uff08float\uff09\u662f CSS \u4e2d\u5e38\u7528\u7684\u5e03\u5c40\u6280\u5de7\u3002\u5b83\u4f7f\u5143\u7d20\u8131\u79bb\u6587\u6863\u6d41\uff0c\u5411\u5de6\u6216\u5411\u53f3\u6d6e\u52a8\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u6d6e\u52a8<\/strong>\uff1a<code>float: left;<\/code> \u6216 <code>float: right;<\/code><br \/>\n\u4f7f\u5143\u7d20\u5411\u5de6\u6216\u53f3\u6d6e\u52a8\uff0c\u5e76\u5141\u8bb8\u5176\u4ed6\u5143\u7d20\u73af\u7ed5\u5b83\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">css<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-css\"><span class=\"hljs-selector-class\">.box<\/span> {<br \/>\n    <span class=\"hljs-attribute\">float<\/span>: left;<br \/>\n    <span class=\"hljs-attribute\">width<\/span>: <span class=\"hljs-number\">200px<\/span>;<br \/>\n    <span class=\"hljs-attribute\">height<\/span>: <span class=\"hljs-number\">100px<\/span>;<br \/>\n    <span class=\"hljs-attribute\">background-color<\/span>: lightblue;<br \/>\n}<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\n<p><strong>\u6e05\u9664\u6d6e\u52a8<\/strong>\uff1a\u6d6e\u52a8\u5143\u7d20\u7684\u5f71\u54cd\u4f1a\u5f71\u54cd\u5230\u540e\u9762\u7684\u5143\u7d20\uff0c\u6e05\u9664\u6d6e\u52a8\u53ef\u4ee5\u4f7f\u5176\u6062\u590d\u6b63\u5e38\u6d41\u3002<br \/>\n\u5e38\u7528\u6e05\u9664\u6d6e\u52a8\u7684\u65b9\u6cd5\u6709\uff1a<\/p>\n<ul>\n<li>\n<p><strong>clear: both;<\/strong><br \/>\n\u5728\u6d6e\u52a8\u5143\u7d20\u4e4b\u540e\uff0c\u4f7f\u7528 <code>clear: both;<\/code> \u53ef\u4ee5\u6e05\u9664\u5de6\u6d6e\u52a8\u548c\u53f3\u6d6e\u52a8\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">css<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-css\"><span class=\"hljs-selector-class\">.clear<\/span> {<br \/>\n    <span class=\"hljs-attribute\">clear<\/span>: both;<br \/>\n}<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\n<p><strong>overflow: hidden;<\/strong><br \/>\n\u7ed9\u7236\u5143\u7d20\u52a0\u4e0a <code>overflow: hidden;<\/code> \u4e5f\u80fd\u6e05\u9664\u6d6e\u52a8\uff0c\u5e38\u7528\u5728\u5e03\u5c40\u5bb9\u5668\u4e2d\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">css<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-css\"><span class=\"hljs-selector-class\">.container<\/span> {<br \/>\n    <span class=\"hljs-attribute\">overflow<\/span>: hidden;<br \/>\n}<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\n<p><strong>zoom: 1;<\/strong><br \/>\n\u8fd9\u4e2a\u65b9\u6cd5\u662f\u9488\u5bf9 IE \u6d4f\u89c8\u5668\u7684\u4e00\u79cd hack\uff0c\u7ed9\u7236\u5143\u7d20\u52a0\u4e0a <code>zoom: 1;<\/code> \u53ef\u4ee5\u6e05\u9664\u6d6e\u52a8\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>4. <strong>\u5b9a\u4f4d<\/strong><\/h4>\n<p>CSS \u5b9a\u4f4d\u7528\u4e8e\u63a7\u5236\u5143\u7d20\u7684\u4f4d\u7f6e\uff0c\u5e38\u7528\u7684\u6709\u4e24\u79cd\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u76f8\u5bf9\u5b9a\u4f4d<\/strong>\uff1a<code>position: relative;<\/code><br \/>\n\u5143\u7d20\u6839\u636e\u539f\u672c\u7684\u4f4d\u7f6e\u8fdb\u884c\u504f\u79fb\uff0c\u4e0d\u8131\u79bb\u6587\u6863\u6d41\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">css<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-css\"><span class=\"hljs-selector-class\">.relative<\/span> {<br \/>\n    <span class=\"hljs-attribute\">position<\/span>: relative;<br \/>\n    <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">10px<\/span>; <span class=\"hljs-comment\">\/* \u5411\u4e0b\u504f\u79fb10px *\/<\/span><br \/>\n    <span class=\"hljs-attribute\">left<\/span>: <span class=\"hljs-number\">20px<\/span>; <span class=\"hljs-comment\">\/* \u5411\u53f3\u504f\u79fb20px *\/<\/span><br \/>\n}<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\n<p><strong>\u7edd\u5bf9\u5b9a\u4f4d<\/strong>\uff1a<code>position: absolute;<\/code><br \/>\n\u5143\u7d20\u8131\u79bb\u6587\u6863\u6d41\uff0c\u5b9a\u4f4d\u76f8\u5bf9\u4e8e\u6700\u8fd1\u7684\u5df2\u5b9a\u4f4d\u7684\u7236\u5143\u7d20\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">css<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-css\"><span class=\"hljs-selector-class\">.absolute<\/span> {<br \/>\n    <span class=\"hljs-attribute\">position<\/span>: absolute;<br \/>\n    <span class=\"hljs-attribute\">top<\/span>: <span class=\"hljs-number\">50px<\/span>; <span class=\"hljs-comment\">\/* \u79bb\u9876\u90e850px *\/<\/span><br \/>\n    <span class=\"hljs-attribute\">right<\/span>: <span class=\"hljs-number\">20px<\/span>; <span class=\"hljs-comment\">\/* \u79bb\u53f3\u8fb920px *\/<\/span><br \/>\n}<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>5. <strong>CSS \u7cbe\u7075<\/strong><\/h4>\n<p>CSS \u7cbe\u7075\u662f\u5c06\u591a\u4e2a\u5c0f\u56fe\u7247\u5408\u6210\u4e00\u5f20\u5927\u56fe\uff0c\u5229\u7528 <code>background-position<\/code> \u6765\u663e\u793a\u4e0d\u540c\u533a\u57df\u7684\u56fe\u7247\uff0c\u4ece\u800c\u51cf\u5c11 HTTP \u8bf7\u6c42\uff0c\u63d0\u9ad8\u9875\u9762\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n<p>\u4f8b\u5982\uff1a\u5982\u679c\u4f60\u6709\u591a\u4e2a\u6309\u94ae\u56fe\u6807\uff08\u5982\uff1a\u7bad\u5934\u3001\u52a0\u53f7\u7b49\uff09\uff0c\u53ef\u4ee5\u5c06\u5b83\u4eec\u5408\u6210\u4e00\u4e2a\u5927\u56fe\uff0c\u901a\u8fc7\u6539\u53d8\u80cc\u666f\u56fe\u7684\u4f4d\u7f6e\u6765\u663e\u793a\u4e0d\u540c\u7684\u6309\u94ae\u3002<\/p>\n<hr \/>\n<h3>\u4e8c. <strong>\u7f51\u9875\u7684\u57fa\u672c\u5143\u7d20<\/strong><\/h3>\n<ol>\n<li><strong>\u6587\u5b57<\/strong>\uff1a\u7f51\u9875\u4e2d\u6700\u5e38\u89c1\u7684\u5143\u7d20\uff0c\u4f7f\u7528\u6807\u7b7e <code>&lt;p&gt;<\/code>, <code>&lt;h1&gt;<\/code>, <code>&lt;h2&gt;<\/code>, <code>&lt;span&gt;<\/code> \u7b49\u8868\u793a\u3002<\/li>\n<li><strong>\u56fe\u7247<\/strong>\uff1a\u901a\u8fc7 <code>&lt;img&gt;<\/code> \u6807\u7b7e\u63d2\u5165\uff0c\u5e38\u7528\u5c5e\u6027\u5305\u62ec <code>src<\/code>\uff08\u6e90\u8def\u5f84\uff09\u548c <code>alt<\/code>\uff08\u56fe\u7247\u65e0\u6cd5\u663e\u793a\u65f6\u7684\u6587\u5b57\u63cf\u8ff0\uff09\u3002<\/li>\n<li><strong>\u94fe\u63a5<\/strong>\uff1a\u901a\u8fc7 <code>&lt;a&gt;<\/code> \u6807\u7b7e\u521b\u5efa\uff0c<code>href<\/code> \u5c5e\u6027\u6307\u5b9a\u94fe\u63a5\u5730\u5740\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u4e09. <strong>\u7f51\u7ad9\u5f00\u53d1\u6d41\u7a0b<\/strong><\/h3>\n<ol>\n<li><strong>\u5b9a\u4e49\u7ad9\u70b9<\/strong>\uff1a\u660e\u786e\u7f51\u7ad9\u7684\u76ee\u7684\uff0c\u662f\u5c55\u793a\u3001\u535a\u5ba2\u3001\u5546\u4e1a\u6216\u5176\u4ed6\u76ee\u7684\u3002<\/li>\n<li><strong>\u5efa\u7acb\u7f51\u7ad9\u7ed3\u6784<\/strong>\uff1a\u89c4\u5212\u597d\u7f51\u7ad9\u7684\u9875\u9762\u5185\u5bb9\u548c\u5c42\u7ea7\u5173\u7cfb\uff0c\u7ed8\u5236\u7f51\u7ad9\u7ed3\u6784\u56fe\u3002<\/li>\n<li><strong>\u9996\u9875\u8bbe\u8ba1\u4e0e\u5236\u4f5c<\/strong>\uff1a\u8bbe\u8ba1\u7f51\u7ad9\u9996\u9875\uff0c\u5c55\u793a\u7f51\u7ad9\u7684\u6838\u5fc3\u5185\u5bb9\u548c\u529f\u80fd\u3002<\/li>\n<li><strong>\u5176\u4ed6\u9875\u9762\u8bbe\u8ba1\u5236\u4f5c<\/strong>\uff1a\u6839\u636e\u9996\u9875\u8bbe\u8ba1\u5236\u4f5c\u5176\u4f59\u9875\u9762\uff0c\u4fdd\u6301\u4e00\u81f4\u7684\u98ce\u683c\u548c\u5e03\u5c40\u3002<\/li>\n<li><strong>\u6d4b\u8bd5\u3001\u53d1\u5e03\u548c\u7ef4\u62a4<\/strong>\uff1a\u5b8c\u6210\u7f51\u7ad9\u540e\uff0c\u8fdb\u884c\u529f\u80fd\u6d4b\u8bd5\uff0c\u786e\u8ba4\u4e00\u5207\u6b63\u5e38\uff0c\u518d\u4e0a\u7ebf\u53d1\u5e03\u5e76\u8fdb\u884c\u540e\u671f\u7ef4\u62a4\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u56db. <strong>\u804c\u4e1a\u89c4\u5212<\/strong><\/h3>\n<ol>\n<li><strong>\u7f8e\u5de5<\/strong>\uff1a\u4e3b\u8981\u8d1f\u8d23\u6dd8\u5b9d\u5e97\u94fa\u6216\u5176\u4ed6\u5e73\u53f0\u7684\u89c6\u89c9\u8bbe\u8ba1\uff0c\u5de5\u8d44\u5927\u6982 4000-5000 \u5143\u3002<\/li>\n<li><strong>UI \u8bbe\u8ba1\u5e08<\/strong>\uff1a\u8d1f\u8d23\u5e94\u7528\u6216\u7f51\u7ad9\u7684\u7528\u6237\u754c\u9762\u8bbe\u8ba1\uff0c\u5de5\u8d44 5500-7000 \u5143\u3002<\/li>\n<li><strong>\u7f51\u9875\u8bbe\u8ba1\u5e08<\/strong>\uff1a\u4f7f\u7528 HTML \u548c CSS \u8bbe\u8ba1\u7f51\u9875\uff0c\u5de5\u8d44 4000-5500 \u5143\u3002<\/li>\n<li><strong>Web \u524d\u7aef\u5f00\u53d1\u5de5\u7a0b\u5e08<\/strong>\uff1a\u638c\u63e1 HTML5\u3001CSS3\u3001JavaScript \u7b49\u6280\u672f\uff0c\u5de5\u8d44 4500-6000 \u5143\u3002<\/li>\n<li><strong>\u7efc\u5408\u804c\u4f4d<\/strong>\uff08\u5982\uff1a\u9879\u76ee\u7ecf\u7406\u3001\u6280\u672f\u603b\u76d1\u7b49\uff09\uff1a\u85aa\u8d44\u6839\u636e\u804c\u4f4d\u4e0d\u540c\u800c\u53d8\u5316\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u4e94. <strong>DW \u5e38\u7528\u9762\u677f<\/strong><\/h3>\n<ol>\n<li><strong>\u63d2\u5165\u9762\u677f<\/strong>\uff1a<code>Ctrl + F2<\/code>\uff0c\u53ef\u4ee5\u5feb\u901f\u63d2\u5165\u5e38\u7528 HTML \u5143\u7d20\u3002<\/li>\n<li><strong>\u5c5e\u6027\u9762\u677f<\/strong>\uff1a<code>Ctrl + F3<\/code>\uff0c\u67e5\u770b\u5e76\u4fee\u6539\u9009\u4e2d\u5143\u7d20\u7684\u5c5e\u6027\u3002<\/li>\n<li><strong>\u6587\u4ef6\u9762\u677f<\/strong>\uff1a<code>F8<\/code>\uff0c\u663e\u793a\u5f53\u524d\u9879\u76ee\u7684\u6587\u4ef6\u7ed3\u6784\uff0c\u65b9\u4fbf\u7ba1\u7406\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u516d. <strong>\u521b\u5efa\u7ad9\u70b9<\/strong><\/h3>\n<ol>\n<li><strong>\u5efa\u7acb\u6587\u4ef6\u5939\u5e76\u547d\u540d<\/strong>\uff1a\u521b\u5efa\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u5982 <code>images<\/code>, <code>css<\/code>\u3002<\/li>\n<li><strong>\u6253\u5f00\u6587\u4ef6\u9762\u677f<\/strong>\uff1a\u901a\u8fc7 \u201c\u7ba1\u7406\u7ad9\u70b9\u201d \u521b\u5efa\u65b0\u7ad9\u70b9\uff0c\u6307\u5b9a\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/li>\n<li><strong>\u521b\u5efa\u7f51\u9875\u6587\u4ef6<\/strong>\uff1a\u5728\u7ad9\u70b9\u5185\u521b\u5efa HTML \u6587\u4ef6\uff0c\u5f00\u59cb\u7f51\u9875\u5236\u4f5c\u3002<\/li>\n<li><strong>\u5220\u9664\u6587\u4ef6<\/strong>\uff1a\u53f3\u952e\u9009\u62e9\u6587\u4ef6\u8fdb\u884c\u5220\u9664\uff0c\u6ce8\u610f\u6587\u4ef6\u4e00\u65e6\u5220\u9664\u5c06\u65e0\u6cd5\u6062\u590d\u3002<\/li>\n<li><strong>\u5220\u9664\u7ad9\u70b9<\/strong>\uff1a\u5728\u201c\u7ba1\u7406\u7ad9\u70b9\u201d\u4e2d\u9009\u62e9\u5e76\u5220\u9664\u4e0d\u9700\u8981\u7684\u7ad9\u70b9\u3002<\/li>\n<li><strong>\u5bfc\u51fa\u548c\u5bfc\u5165\u7ad9\u70b9<\/strong>\uff1a\u5c06\u7ad9\u70b9\u5bfc\u51fa\u4e3a\u6587\u4ef6\u6216\u5bfc\u5165\u5176\u4ed6\u7ad9\u70b9\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u4e03. <strong>\u94fe\u63a5<\/strong><\/h3>\n<ol>\n<li><strong>\u6587\u5b57\u94fe\u63a5<\/strong>\uff1a<code>&lt;a href=\"URL\"&gt;\u6587\u672c&lt;\/a&gt;<\/code><\/li>\n<li><strong>\u56fe\u7247\u94fe\u63a5<\/strong>\uff1a<code>&lt;a href=\"URL\"&gt;&lt;img src=\"image.jpg\" alt=\"Description\"&gt;&lt;\/a&gt;<\/code><\/li>\n<li><strong>\u70ed\u70b9\u94fe\u63a5<\/strong>\uff1a\u901a\u8fc7 <code>map<\/code> \u6807\u7b7e\u4e3a\u56fe\u7247\u6dfb\u52a0\u591a\u4e2a\u70b9\u51fb\u533a\u57df\uff0c\u5e38\u7528\u4e8e\u56fe\u50cf\u5730\u56fe\u3002<\/li>\n<li><strong>\u951a\u70b9\u94fe\u63a5<\/strong>\uff1a\u5728\u9875\u9762\u5185\u8df3\u8f6c\u81f3\u67d0\u4e2a\u7279\u5b9a\u4f4d\u7f6e\u3002<br \/>\n\u4f8b\u5982\uff1a<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">html<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-html\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a<\/span> <span class=\"hljs-attr\">href<\/span>=<span class=\"hljs-string\">\"#section1\"<\/span>&gt;<\/span>\u8df3\u8f6c\u5230 Section 1<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">a<\/span>&gt;<\/span><br \/>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span> <span class=\"hljs-attr\">id<\/span>=<span class=\"hljs-string\">\"section1\"<\/span>&gt;<\/span>\u8fd9\u91cc\u662f Section 1<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ol>\n<hr \/>\n<h3>\u516b. <strong>\u56fe\u7247\u683c\u5f0f<\/strong><\/h3>\n<ol>\n<li><strong>JPG<\/strong>\uff1a\u9002\u5408\u7167\u7247\uff0c\u652f\u6301 1670 \u4e07\u79cd\u989c\u8272\uff0c\u56fe\u7247\u8f83\u5927\u4f46\u8d28\u91cf\u9ad8\u3002<\/li>\n<li><strong>GIF<\/strong>\uff1a\u652f\u6301\u52a8\u753b\u548c\u900f\u660e\u80cc\u666f\uff0c\u9002\u5408\u7b80\u5355\u56fe\u6807\u548c\u5c0f\u56fe\u7247\uff0c\u53ea\u6709 256 \u79cd\u989c\u8272\u3002<\/li>\n<li><strong>PNG<\/strong>\uff1a\u652f\u6301\u900f\u660e\uff0c\u4f46\u4e0d\u652f\u6301\u52a8\u753b\uff0c\u9002\u5408\u56fe\u6807\u3001\u6309\u94ae\u7b49\uff0c\u989c\u8272\u8303\u56f4\u4ece 256 \u5230 1670 \u4e07\u79cd\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u4e5d. <strong>\u51c6\u5907\u9879\u76ee\u6d41\u7a0b<\/strong><\/h3>\n<ol>\n<li><strong>\u5efa\u7acb\u9879\u76ee\u6587\u4ef6\u5939<\/strong>\uff1a\u4e3a\u9879\u76ee\u521b\u5efa\u6587\u4ef6\u5939\uff0c\u89c4\u8303\u547d\u540d\u3002<\/li>\n<li><strong>\u5efa\u7acb\u7ad9\u70b9<\/strong>\uff1a\u5728\u5f00\u53d1\u5de5\u5177\u4e2d\u5efa\u7acb\u65b0\u7684\u7ad9\u70b9\u3002<\/li>\n<li><strong>\u9875\u9762\u5206\u6790<\/strong>\uff1a\u5206\u6790\u9875\u9762\u7684\u7ed3\u6784\uff0c\u786e\u5b9a\u4f7f\u7528\u54ea\u4e9b HTML \u548c CSS \u5143\u7d20\u3002<\/li>\n<li><strong>\u5efa\u7acb\u6a21\u677f<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2a\u57fa\u7840\u6a21\u677f\uff0c\u5305\u542b HTML \u7ed3\u6784\u548c\u5fc5\u8981\u7684\u6837\u5f0f\u3002<\/li>\n<li><strong>\u521b\u5efa CSS \u6587\u4ef6\u5e76\u5f15\u5165<\/strong>\uff1a\u521b\u5efa <code>styles.css<\/code> \u6587\u4ef6\uff0c\u5e76\u5728 HTML \u6587\u4ef6\u4e2d\u901a\u8fc7 <code>&lt;link&gt;<\/code> \u6807\u7b7e\u5f15\u5165\u3002<\/li>\n<li><strong>\u521b\u5efa\u53ef\u7f16\u8f91\u533a\u57df<\/strong>\uff1a\u4f7f\u7528 DW \u63d2\u4ef6\u521b\u5efa\u53ef\u7f16\u8f91\u533a\u57df\uff0c\u5141\u8bb8\u5728\u6a21\u677f\u4e2d\u52a8\u6001\u4fee\u6539\u5185\u5bb9\u3002<\/li>\n<li><strong>\u5220\u9664\u53ef\u7f16\u8f91\u533a\u57df<\/strong>\uff1a\u5220\u9664\u4e0d\u9700\u8981\u7684\u53ef\u7f16\u8f91\u533a\u57df\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u5341. <strong>\u5143\u7d20\u7c7b\u578b<\/strong><\/h3>\n<ol>\n<li><strong>\u884c\u5185\u5143\u7d20<\/strong>\uff1a\u5982 <code>&lt;span&gt;<\/code>, <code>&lt;a&gt;<\/code>\uff0c\u8fd9\u4e9b\u5143\u7d20\u4e0d\u4f1a\u72ec\u5360\u4e00\u884c\uff0c\u5bbd\u9ad8\u4e0d\u80fd\u8bbe\u7f6e\u3002<\/li>\n<li><strong>\u5757\u5143\u7d20<\/strong>\uff1a\u5982 <code>&lt;div&gt;<\/code>, <code>&lt;h1&gt;<\/code>\uff0c\u8fd9\u4e9b\u5143\u7d20\u72ec\u5360\u4e00\u884c\uff0c\u80fd\u8bbe\u7f6e\u5bbd\u9ad8\u3002<\/li>\n<\/ol>\n<hr \/>\n<h3>\u5341\u4e00. <strong>\u8f6c\u6362\u5143\u7d20\u7c7b\u578b<\/strong><\/h3>\n<ol>\n<li><strong><code>display: inline;<\/code><\/strong>\uff1a\u5c06\u5143\u7d20\u8f6c\u6362\u4e3a\u884c\u5185\u5143\u7d20\uff0c\u4e0d\u72ec\u5360\u4e00\u884c\uff0c\u5bbd\u9ad8\u4e0d\u80fd\u8bbe\u7f6e\u3002<\/li>\n<li><strong><code>display: block;<\/code><\/strong>\uff1a\u5c06\u5143\u7d20\u8f6c\u6362\u4e3a\u5757\u7ea7\u5143\u7d20\uff0c\u72ec\u5360\u4e00\u884c\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5bbd\u9ad8\u3002<\/li>\n<li><strong><code>display: inline-block;<\/code><\/strong>\uff1a\u5c06\u5143\u7d20\u8f6c\u6362\u4e3a\u884c\u5185\u5757\u7ea7\u5143\u7d20\uff0c\u53ef\u4ee5\u5728\u4e00\u884c\u663e\u793a\uff0c\u4f46\u4ecd\u7136\u80fd\u8bbe\u7f6e\u5bbd\u9ad8\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00. CSS \u57fa\u7840 1. \u57fa\u672c\u9009\u62e9\u5668 \u57fa\u672c\u9009\u62e9\u5668\u7528\u4e8e\u9009\u53d6\u7f51\u9875\u4e0a\u7684 HTML \u5143\u7d20\u3002\u4ee5\u4e0b\u662f\u5e38\u7528\u7684\u57fa\u672c\u9009\u62e9\u5668\uff1a \u5143 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"content_type":[],"class_list":["post-8048","post","type-post","status-publish","format-standard","hentry","category-zzjy"],"_links":{"self":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/8048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8048"}],"version-history":[{"count":0,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/8048\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8048"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcontent_type&post=8048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}