{"id":221,"date":"2008-05-11T12:39:12","date_gmt":"2008-05-11T12:39:12","guid":{"rendered":"http:\/\/www.ddcat.net\/blog2009\/?p=221"},"modified":"2008-05-11T12:39:12","modified_gmt":"2008-05-11T12:39:12","slug":"44-%e6%8c%87%e5%ae%9a%e5%80%bc%e3%80%81%e8%ae%a1%e7%ae%97%e5%80%bc%e5%92%8c%e5%ae%9e%e9%99%85%e5%80%bc","status":"publish","type":"post","link":"http:\/\/www.ddcat.net\/blog\/index.php\/2008\/05\/11\/44-%e6%8c%87%e5%ae%9a%e5%80%bc%e3%80%81%e8%ae%a1%e7%ae%97%e5%80%bc%e5%92%8c%e5%ae%9e%e9%99%85%e5%80%bc\/","title":{"rendered":"4.4 \u6307\u5b9a\u503c\u3001\u8ba1\u7b97\u503c\u548c\u5b9e\u9645\u503c"},"content":{"rendered":"<p>\u5236\u4f5c\u8005\u5b9a\u4e49CSS\u65f6\uff0c\u4e0d\u9700\u8981\u5bf9\u6bcf\u4e2a\u5c5e\u6027\u90fd\u6307\u5b9a\u4e00\u4e2a\u503c\uff0c\u800c\u5bf9\u4e8e\u89e3\u91ca\u7f51\u9875\u7684\u7528\u6237\u7aef\uff08\u4f8b\u5982\uff1a\u6d4f\u89c8\u5668\uff09\uff0c\u5f53\u5b83\u89e3\u6790\u4e86\u4e00\u4e2a\u6587\u6863\u5e76\u4e14\u751f\u6210\u4e86\u6587\u6863\u6811\uff0c\u5b83\u5fc5\u987b\u4e3a\u6587\u6863\u6811\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u6839\u636e\u76ee\u6807\u5a92\u4ecb\u7c7b\u578b\u6240\u9002\u7528\u7684\u6bcf\u4e00\u4e2a\u5c5e\u6027\uff0c\u6307\u5b9a\u4e00\u4e2a\u503c\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u65e0\u8bba\u5236\u4f5c\u8005\u662f\u5426\u5728CSS\u4e2d\u5b9a\u4e49\u4e86\u67d0\u4e2a\u5c5e\u6027\uff0c\u6bcf\u4e2a\u5c5e\u6027\u90fd\u6709\u4e00\u4e2a\u503c\uff0c\u53ef\u80fd\u662f\u5236\u4f5c\u8005\u5b9a\u4e49\u5f97\u503c\uff0c\u4e5f\u53ef\u80fd\u662f\u5c5e\u6027\u7684\u521d\u59cb\u503c\uff0c\u6216\u8005\u6d4f\u89c8\u5668\u5185\u90e8\u6837\u5f0f\u7684\u503c\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u5236\u4f5c\u8005\u6240\u5199\u7684CSS\u503c\uff0c\u53ef\u4ee5\u662f\u4e00\u4e2a\u5177\u4f53\u7684\u6570\u5b57\uff0c\u4e5f\u53ef\u80fd\u662f\u4e00\u4e2a\u767e\u5206\u6bd4\uff0c\u6216\u8005\u4e00\u4e2a\u7f29\u653e\u56e0\u5b50\uff0c\u800c\u5bf9\u4e8e\u6d4f\u89c8\u5668\u6765\u8bf4\uff0c\u5b83\u5fc5\u987b\u5c06\u7528\u6237\u5b9a\u4e49\u7684\u503c\u8f6c\u53d8\u4e3a\u53ef\u4ee5\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u7684\u5177\u4f53\u7684\u6570\u503c\u3002<\/p>\n<p>\u4e00\u4e2a\u5c5e\u6027\u6700\u7ec8\u7684\u503c\u7684\u786e\u5b9a\u9700\u8981\u7ecf\u8fc74\u6b65\u8ba1\u7b97\uff1a\u9996\u5148\u662f\u901a\u8fc7\u89c4\u5219\u786e\u5b9a\u4e00\u4e2a\u201c\u6307\u5b9a\u503c\u201d\uff0c\u7136\u540e\u8f6c\u6362\u6210\u7528\u4ee5\u7ee7\u627f\u7684\u201c\u8ba1\u7b97\u503c\u201d\uff0c\u5982\u679c\u9700\u8981\u518d\u8f6c\u6362\u4e3a\u4e00\u4e2a\u7edd\u5bf9\u7684\u201c\u4f7f\u7528\u503c\u201d\uff0c\u6700\u540e\u4f9d\u7167\u5c40\u90e8\u7684\u73af\u5883\u9650\u5b9a\u8f6c\u6362\u4e3a\u201c\u5b9e\u9645\u503c\u201d\u3002<\/p>\n<p><strong>1. \u6307\u5b9a\u503c<\/strong><\/p>\n<p>\u7528\u6237\u7aef\u6839\u636e\u4e0b\u5217\u89c4\u5219\u7ed9\u6bcf\u4e2a\u5c5e\u6027\u5206\u914d\u6307\u5b9a\u503c\uff08\u6309\u7167\u4f18\u5148\u7ea7\u6392\u5e8f\uff09\uff1a<br \/>\n1) \u5982\u679c\u503c\u4e2d\u5305\u542b\u5c42\u53e0\uff0c\u4f7f\u7528\u5c42\u53e0\u3002<br \/>\n2) \u5426\u5219\uff0c\u5982\u679c\u5c5e\u6027\u662f\u7ee7\u627f\u7684\u4e14\u5143\u7d20\u4e0d\u662f\u6587\u6863\u7684\u6839\u5143\u7d20\uff0c\u4f7f\u7528\u5b83\u7236\u5143\u7d20\u7684\u8ba1\u7b97\u503c\u3002<br \/>\n3) \u5426\u5219\u4f7f\u7528\u521d\u59cb\u503c\u3002\uff08\u521d\u59cb\u503c\u5728\u6bcf\u4e2a\u5c5e\u6027\u7684\u5b9a\u4e49\u5217\u8868\u5185\u6709\u8bf4\u660e\u3002\uff09<\/p>\n<p><strong>2. \u8ba1\u7b97\u503c<\/strong><\/p>\n<p>\u5728\u5c42\u53e0\u4e2d\uff0c\u6307\u5b9a\u503c\u51b3\u5b9a\u8ba1\u7b97\u503c\uff0c\u800c\u6307\u5b9a\u503c\u53ef\u4ee5\u662f\u4e00\u4e2a\u7edd\u5bf9\u503c\uff08\u4f8b\u5982\u989c\u8272\u503c\u201cred\u201d\uff09\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u76f8\u5bf9\u503c\uff08\u4f8b\u5982\u201cem\u201d\u548c\u201cex\u201d\u9700\u8981\u6839\u636e\u50cf\u7d20\u6216\u8005\u7edd\u5bf9\u957f\u5ea6\u6765\u8ba1\u7b97\uff09\u3002<br \/>\n\u5bf9\u4e8e\u7edd\u5bf9\u503c\uff0c\u4e0d\u9700\u8981\u7ecf\u8fc7\u8ba1\u7b97\u6765\u5f97\u5230\u8ba1\u7b97\u503c\u3002<br \/>\n\u800c\u76f8\u5bf9\u503c\u5fc5\u987b\u8f6c\u6362\u4e3a\u8ba1\u7b97\u503c\uff1a\u767e\u5206\u6bd4\u8981\u4e58\u4ee5\u4e00\u4e2a\u53c2\u8003\u503c\uff08\u6bcf\u4e00\u4e2a\u5c5e\u6027\u90fd\u4f1a\u5b9a\u4e49\u53c2\u8003\u503c\u662f\u4ec0\u4e48\uff09\uff0c\u5305\u542b\u76f8\u5bf9\u5355\u4f4d\u7684\u503c\uff08em\uff0cex\uff0cpx\uff09\u5fc5\u987b\u4e58\u4ee5\u76f8\u5e94\u7684\u5b57\u4f53\u6216\u70b9\u7684\u5c3a\u5bf8\u4ee5\u5f97\u5230\u7edd\u5bf9\u503c\uff0c\u201cauto\u201d\u503c\u5fc5\u987b\u7531\u5404\u5c5e\u6027\u7ed9\u51fa\u7684\u516c\u5f0f\u52a0\u4ee5\u8ba1\u7b97\uff0c\u67d0\u4e9b\u5173\u952e\u5b57\uff08smaller\uff0cbolder\uff0cinherit\uff09\u6839\u636e\u5b83\u4eec\u7684\u5b9a\u4e49\u800c\u52a0\u4ee5\u66ff\u6362\u3002<br \/>\n\u5927\u90e8\u5206\u60c5\u5f62\u4e0b\uff0c\u5143\u7d20\u7ee7\u627f\u7684\u662f\u8ba1\u7b97\u503c\u3002\u4e0d\u8fc7\u6709\u4e00\u4e9b\u5c5e\u6027\u7684\u6307\u5b9a\u503c\u4e5f\u53ef\u4ee5\u88ab\u7ee7\u627f\uff08\u4f8b\u5982line-height\u5c5e\u6027\u7684\u6570\u5b57\u503c\uff09\u3002\u5b50\u5143\u7d20\u4e0d\u7ee7\u627f\u8ba1\u7b97\u503c\u7684\u60c5\u51b5\u5728\u5c5e\u6027\u5b9a\u4e49\u4e2d\u6709\u63cf\u8ff0\u3002<br \/>\n\u5f53\u6307\u5b9a\u503c\u4e0d\u662f\u201cinherit\u201d\u65f6\uff0c\u5c5e\u6027\u7684\u8ba1\u7b97\u503c\u6839\u636e\u5c5e\u6027\u5b9a\u4e49\u5217\u8868\u4e2d\u201c\u8ba1\u7b97\u503c\u201d\u4e00\u9879\u6765\u786e\u5b9a\u3002<\/p>\n<p><strong>3. \u4f7f\u7528\u503c<\/strong><\/p>\n<p>\u6709\u65f6\u5019\uff0c\u8ba1\u7b97\u503c\u53ef\u80fd\u8981\u5230\u6587\u6863\u88ab\u7528\u6237\u7aef\u89e3\u91ca\u7684\u65f6\u5019\u624d\u80fd\u786e\u5b9a\uff0c\u4f8b\u5982\uff0c\u67d0\u4e2adiv\u8bbe\u5b9a\u4e86\u5bbd\u5ea6\u4e3a\u5176\u5305\u542b\u5757\u5bbd\u5ea6\u768480%\uff0c\u90a3\u4e48\uff0c\u5176\u8ba1\u7b97\u503c\u9700\u8981\u5728\u7528\u6237\u7aef\u786e\u5b9a\u4e86\u5176\u5305\u542b\u5757\u7684\u5bbd\u5ea6\u4ee5\u540e\uff0c\u624d\u80fd\u8ba1\u7b97\u51fa\u6765\u3002<br \/>\n\u4f7f\u7528\u503c\u5c31\u662f\u6307\u4ece\u7edd\u5bf9\u503c\u4e2d\u53bb\u9664\u4e86\u5176\u4ed6\u56e0\u7d20\u4ee5\u540e\u8ba1\u7b97\u51fa\u6765\u7684\u503c\u3002<\/p>\n<p><strong>4. \u5b9e\u9645\u503c<\/strong><\/p>\n<p>\u539f\u5219\u4e0a\uff0c\u4f7f\u7528\u503c\u662f\u7528\u6237\u7aef\u7528\u6765\u7ed8\u5236\u5143\u7d20\u7684\u503c\uff0c\u4f46\u662f\u7528\u6237\u7aef\u5728\u67d0\u4e9b\u7279\u5b9a\u7684\u73af\u5883\u4e0b\u53ef\u80fd\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u503c\u3002\u4f8b\u5982\u8fb9\u6846\u7684\u5bbd\u5ea6\u53ea\u80fd\u4ee5\u6574\u6570\u7684\u50cf\u7d20\u503c\u6765\u663e\u793a\uff0c\u56e0\u6b64\u53ef\u80fd\u4f1a\u8ba1\u7b97\u51fa\u4e00\u4e2a\u8fd1\u4f3c\u7684\u5bbd\u5ea6\u503c\uff0c\u518d\u4f8b\u5982\uff0c\u67d0\u4e9b\u663e\u793a\u8bbe\u5907\u53ea\u80fd\u7528\u9ed1\u767d\u53ca\u7070\u5ea6\u503c\u6765\u663e\u793a\u5f69\u8272\u7684\u5185\u5bb9\u3002<br \/>\n\u5b9e\u9645\u503c\u5c31\u662f\u4f7f\u7528\u503c\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u8fd1\u4f3c\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u5c5e\u6027\u6700\u7ec8\u7684\u503c\u7684\u786e\u5b9a\u9700\u8981\u7ecf\u8fc74\u6b65\u8ba1\u7b97\uff1a\u9996\u5148\u662f\u901a\u8fc7\u89c4\u5219\u786e\u5b9a\u4e00\u4e2a\u201c\u6307\u5b9a\u503c\u201d\uff0c\u7136\u540e\u8f6c\u6362\u6210\u7528\u4ee5\u7ee7\u627f\u7684\u201c\u8ba1\u7b97\u503c\u201d\uff0c\u5982\u679c\u9700\u8981\u518d\u8f6c\u6362\u4e3a\u4e00\u4e2a\u7edd\u5bf9\u7684\u201c\u4f7f\u7528\u503c\u201d\uff0c\u6700\u540e\u4f9d\u7167\u5c40\u90e8\u7684\u73af\u5883\u9650\u5b9a\u8f6c\u6362\u4e3a\u201c\u5b9e\u9645\u503c\u201d\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,20],"tags":[44,174],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-web","category-web-css","tag-css","tag-174"],"_links":{"self":[{"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":0,"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ddcat.net\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}