{"id":489,"date":"2009-12-30T05:27:15","date_gmt":"2009-12-29T21:27:15","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=489"},"modified":"2017-12-31T22:38:53","modified_gmt":"2017-12-31T14:38:53","slug":"html-css%e5%88%97%e8%a1%a8%e5%85%83%e7%b4%a0uloldl%e7%9a%84%e7%a0%94%e7%a9%b6%e4%b8%8e%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2009\/12\/html-css%e5%88%97%e8%a1%a8%e5%85%83%e7%b4%a0uloldl%e7%9a%84%e7%a0%94%e7%a9%b6%e4%b8%8e%e5%ba%94%e7%94%a8\/","title":{"rendered":"HTML CSS\u5217\u8868\u5143\u7d20ul,ol,dl\u7684\u7814\u7a76\u4e0e\u5e94\u7528"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=489\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=489<\/a><\/p>\n<h3>\u4e00\u3001\u53ef\u4ee5\u770b\u505a\u5e9f\u8bdd\u7684\u524d\u8a00<\/h3>\n<p>HTML\u5217\u8868\u5143\u7d20\uff08\u5982ol,ul,dl\uff09\u7b49\u5728\u73b0\u4e0b\u7684\u7f51\u7ad9\u5f00\u53d1\u5236\u4f5c\u4e2d\u6709\u7740\u975e\u5e38\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u7136\u800c\uff0c\u5b83\u4eec\u7684\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u813e\u6c14\u5374\u4e0d\u4e00\u6837\u3002\u672c\u6587\u5c31\u662f\u5206\u6790\u8fd9\u4e9b\u5217\u8868\u5143\u7d20\u7684\u57fa\u672c\u7279\u6027\uff0c\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u5404\u7c7b\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4ee5\u53ca\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u7b49\u3002<\/p>\n<p>\u5bf9\u521d\u5b66\u8005\u6216\u662f\u6709\u4e00\u5b9aCSS\u65b9\u9762\u7ecf\u9a8c\u7684\u540c\u884c\u4eec\u5e94\u8be5\u4f1a\u6709\u5e2e\u52a9\u7684\u3002<\/p>\n<h3>\u4e8c\u3001HTML\u4e2d\u53ef\u7528\u7684\u5217\u8868\u5143\u7d20<\/h3>\n<h4>1\u3001\u65e0\u5e8f\u5217\u8868\uff1aul<\/h4>\n<p>\u65e0\u5e8f\u5217\u8868\u662f\u6700\u5e38\u4f7f\u7528\u7684\u5217\u8868\uff0c\u4e0b\u56fe\u663e\u793a\u4e86\u65e0\u5e8f\u5217\u8868\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u663e\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"mt10 imgpad\" alt=\"\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u65e0\u5e8f\u5217\u8868\u7684\u8868\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_024950.png\" title=\"\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u65e0\u5e8f\u5217\u8868\u7684\u8868\u73b0\" width=\"426\" height=\"266\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/ul-li-browser-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<p>\u6b63\u5982\u4e0a\u9762\u663e\u793a\u7684\uff0c\u65e0\u5e8f\u5217\u8868\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u662f\u7531\u4e9b\u8bb8\u5dee\u5f02\u7684\u3002\u5f53\u7136\uff0c\u5728\u5982\u4eca\u5b9e\u9645\u7684\u7f51\u7ad9\u9879\u76ee\u4e0a\u662f\u5f88\u5c11\u770b\u5230\u6ca1\u6709\u4efb\u4f55\u4fee\u9970\u7684\u65e0\u5e8f\u5217\u8868\u4e86\u3002\u5176\u4e2d\u539f\u56e0\u4e4b\u4e00\u5c31\u662f<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/css-tools-css-reset.html\">CSS\u7684\u91cd\u7f6e(css reset)<\/a>\uff0c\u5df2\u7ecf\u5c06\u65e0\u5e8f\u5217\u8868\u9ed8\u8ba4\u7684\u5217\u8868\u9879\u76ee\u7b26\u53f7\uff0cmargin\u6216padding\u90fd\u53bb\u6389\u4e86\u3002<\/p>\n<p>\u65e0\u5e8f\u5217\u8868\u7684\u4e00\u4e9b\u7279\u5b9a\u7684CSS\u5c5e\u6027\u6709<code>list-style-type<\/code>\uff0c<code>list-style-position<\/code>\uff0c\u548c<code>list-style-image<\/code>\u3002\u8fd9\u4e9b\u5c5e\u6027\u8bbe\u7f6e\u4e86\u5217\u8868\u9879\u76ee\u7b26\u53f7\u7684\u7c7b\u578b\uff0c\u6807\u8bb0\u7684\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u4f7f\u7528\u56fe\u7247\u4ee3\u66ff\u6807\u8bb0\u3002\u8fd9\u4e09\u4e2a\u5c5e\u6027\u53ef\u4ee5\u4f7f\u7528<code>list-style<\/code>\u8fdb\u884c\u5408\u5e76\u7f29\u5199\u3002<\/p>\n<p><code>list-style-type<\/code>\u5c5e\u6027\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u4e00\u4e9b\u4e0d\u540c\u7684\u503c\uff0c\u4e0b\u9762\u56fe\u8868\u5c55\u793a\u7684\u5c31\u662f\u90e8\u5206\u503c\u7684\u9875\u9762\u6548\u679c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"list-style-type\u4e0d\u540c\u503c\u7684\u8868\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/list-markers.png\" title=\"list-style-type\u4e0d\u540c\u503c\u7684\u8868\u73b0\" class=\"alignnone\" width=\"540\" height=\"241\" \/><\/p>\n<p>\u4f9d\u8d56\u4e8e\u7528\u6237\u7684\u6d4f\u89c8\u5668\u53ca\u64cd\u4f5c\u7cfb\u7edf\uff0c\u67d0\u4e9b<code>list-style-item<\/code>\u503c\u53ef\u80fd\u4e0d\u80fd\u6b63\u786e\u663e\u793a\uff0c\u901a\u5e38\u9ed8\u8ba4\u4e3a\u5341\u8fdb\u5236\u6570\u503c\uff0c\u7528\u65e0\u9700\u5217\u8868\u5b9e\u73b0\u9012\u589e\u6570\u503c\u662f\u4e0d\u63a8\u8350\u7684\uff0c\u56e0\u4e3a\u8fd9\u6837\u201c\u65e0\u5e8f\u5217\u8868\u201d\u5176\u672c\u8eab\u7684\u8bed\u4e49\u5df2\u7ecf\u4e0d\u590d\u5b58\u5728\u4e86\u3002<\/p>\n<p><code>list-style-position<\/code>\u9488\u5bf9\u4e8e\u5217\u8868\u6807\u8bb0\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u88ab\u8bbe\u7f6e\u4e3a<code>outside<\/code>\uff08\u9ed8\u8ba4\uff09\u6216\u662f<code>inside<\/code>\u3002\u5982\u679c<code>list-style-image<\/code>\u88ab\u8bbe\u7f6e\u7684\u8bdd\uff0c\u5176\u4e5f\u4f1a\u5f71\u54cd\u56fe\u7247\u7684\u4f4d\u7f6e\u3002<\/p>\n<p><code>list-style-image<\/code>\u5c5e\u6027\u53ef\u4ee5\u7ed9\u65e0\u5e8f\u5217\u8868\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u72ec\u4e00\u65e0\u4e8c\u7684\u8868\u73b0\uff0c\u4e0d\u5e78\u7684\u662f\uff0c\u5728IE\u4e0b\u4f7f\u7528\u6b64\u65b9\u6cd5\u6dfb\u52a0\u9879\u76ee\u7f16\u53f7\u662fbug\u591a\u591a\uff0c\u6545\u5f88\u5c11\u88ab\u4f7f\u7528\u3002\u4e00\u4e2a\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u6dfb\u52a0<code>background-image<\/code>\u5230\u5217\u8868\u7684<code>li<\/code>\u5143\u7d20\u4e0a\uff0c\u5e76\u76f8\u5e94\u7684\u8c03\u6574<code>background-image<\/code>\u7684\u4f4d\u7f6e\uff0c\u5e76\u8bbe\u7f6e\u4e3a<code>no-repeat<\/code>\u3002\u5728<a target=\"_blank\" href=\"http:\/\/css.maxdesign.com.au\/listutorial\/introduction.htm\">maxdesign.com<\/a>\u4e0a\uff0c\u5df2\u7ecf\u901a\u8fc7\u5206\u6b65\u8bb2\u89e3\u6f14\u793a\u4e86\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u800c\u4e14\u5728\u6240\u6709\u7684\u6d4f\u89c8\u5668\u4e0b\u90fd\u5de5\u4f5c\u826f\u597d\u3002<\/p>\n<h4>2\u3001\u6709\u5e8f\u5217\u8868\uff1aol<\/h4>\n<p>\u6709\u5e8f\u5217\u8868\u5728\u5f53\u5217\u8868\u9879\u76ee\u7684\u6bcf\u4e2a\u5217\u8868\u9879\u76ee\u524d\u9762\u9700\u8981\u4e00\u4e2a\u9012\u589e\u503c\u7684\u65f6\u5019\u4f7f\u7528\uff08\u4f8b\u59821,2,3\u7b49\uff09\u3002\u6709\u5e8f\u5217\u8868\u7684\u5217\u8868\u7c7b\u578blist-style-type\u53ef\u4ee5\u88ab\u8bbe\u7f6e\u4e3a\u4efb\u4f55\u5728\u65e0\u5e8f\u5217\u8868\u4e0b\u53ef\u4ee5\u8bbe\u7f6e\u7684\u503c\u3002\u5728\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u6709\u5e8f\u5217\u8868\u8981\u4e48\u524d\u9762\u662f\u4e2a\u9012\u589e\u6570\u503c\uff0c\u8981\u4e48\u524d\u9762\u6ca1\u6709\u4efb\u4f55\u6807\u8bb0\u3002\u4e0d\u5efa\u8bae\u4f7f\u7528\u6709\u5e8f\u5217\u8868\u5b9e\u73b0\u7c7b\u4f3c\u4e8e\u65e0\u5e8f\u5217\u8868\u7684\u8868\u73b0\u3002\u56e0\u4e3a\u8fd9\u6837\uff0c\u6709\u5e8f\u5217\u8868\u672c\u8eab\u7684\u8bed\u4e49\u5df2\u7ecf\u4e0d\u6b63\u786e\u4e86\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"mt10 imgpad\" alt=\"\u6709\u5e8f\u5217\u8868\u4f7f\u7528\u7684\u5b9e\u4f8b\u622a\u56fe\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_031248.png\" title=\"\u6709\u5e8f\u5217\u8868\u4f7f\u7528\u7684\u5b9e\u4f8b\u622a\u56fe\" class=\"alignnone\" width=\"221\" height=\"161\" \/><\/p>\n<h4>3\u3001\u5b9a\u4e49\u5217\u8868\uff1adl<\/h4>\n<p>\u5b9a\u4e49\u5217\u8868\u7528\u6765\u6807\u8bb0\u5df2\u7ecf\u5b9a\u4e49\u7684\u5217\u8868\u9879\uff0c\u5b83\u4eec\u5305\u62ec\u5b9a\u4e49\u6807\u9898(dt)\u4ee5\u53ca\u5b9a\u4e49\u672c\u8eab(dd)\u3002\u5b9a\u4e49\u5217\u8868\u9879\u76ee\u6ca1\u6709\u5fc5\u8981\u5b8c\u5168\u5339\u914d\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u5728\u4e25\u683c\u7684XHTML\u4e0b\u662f\u5b8c\u5168\u5408\u6cd5\u7684\uff1a<\/p>\n<pre>&lt;dl&gt;\n  &lt;dt&gt;\u65e0\u7ebf\u97f3\u4e50\u54aa\u5495\u6c47 &lt;\/dt&gt;\n  &lt;dt&gt;\u54e5\u672c\u54c8\u6839\u4f1a\u8bae&lt;\/dt&gt;\n  &lt;dd&gt;\u300a\u5341\u6708\u56f4\u57ce\u300b&lt;\/dd&gt;\n&lt;\/dl&gt;<\/pre>\n<p>\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u5728\u5355\u4e2a<code>dd<\/code>\u4e0b\u9762\u4f7f\u7528\u591a\u4e2a<code>dt<\/code>\uff0c\u4e5f\u53ef\u4ee5\u5728\u5355\u4e2a<code>dt<\/code>\u4e0b\u9762\u4f7f\u7528\u591a\u4e2a<code>dd<\/code>\u3002<\/p>\n<p>\u5b9a\u4e49\u5217\u8868\u7684\u89c6\u89c9\u663e\u793a\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5404\u4e2a\u6d4f\u89c8\u5668\u7684\u663e\u793a\u51e0\u4e4e\u662f\u4e00\u81f4\u7684\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"dl\u5b9a\u4e49\u5217\u8868\u5728Firefox\u4e0b\u7684\u663e\u793a\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_032654.png\" title=\"dl\u5b9a\u4e49\u5217\u8868\u5728Firefox\u4e0b\u7684\u663e\u793a\" class=\"alignnone\" width=\"326\" height=\"262\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/dl-dt-browser-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<p>\u4e0a\u56fe\u5bf9\u5e94\u7684HTML\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>\n &lt;dl> &lt;dt>\u6807\u9898 &lt;\/dt> &lt;dd>\u8fd9\u91cc\u662f\u5b9a\u4e49\u7684\u5185\u5bb9 &lt;\/dd> &lt;\/dl>\n &lt;dl>\n     &lt;dt>\u70ed\u95e8\u7535\u5f71 &lt;\/dt>\n     &lt;dd>\u5341\u6708\u56f4\u57ce &lt;\/dd> &lt;dd>\u523a\u9675 &lt;\/dd> &lt;dd>\u4e09\u67aa\u62cd\u6848\u60ca\u5947 &lt;\/dd> &lt;dd>\u963f\u51e1\u8fbe &lt;\/dd>\n &lt;\/dl>\n &lt;dl>\n     &lt;dt>\u70ed\u70b9\u5173\u6ce8 &lt;\/dt>\n     &lt;dd>\u80a1\u5e02 &lt;\/dd> &lt;dd>\u623f\u4ef7 &lt;\/dd> &lt;dd>\u5143\u65e6 &lt;\/dd> &lt;dd>\u66f9\u64cd\u5893 &lt;\/dd>\n &lt;\/dl>\n<\/pre>\n<\/div>\n<h4>4\u3001\u8fc7\u65f6\u6dd8\u6c70\u7684\u5217\u8868\uff1amenu&#038;dir<\/h4>\n<p><code>&lt;menu&gt;<\/code>\u548c<code>&lt;dir&gt;<\/code>\u5143\u7d20\uff0c\u4ece\u6280\u672f\u4e0a\u8bf4\uff0c\u4e5f\u53ef\u4ee5\u79f0\u4e3a\u201cHTML\u5217\u8868\u201d\uff0c\u4f46\u5b83\u4eec\u5728XHTML\u4e2d\u5df2\u8fc7\u65f6\u6dd8\u6c70\u4e86\uff0c\u6240\u4ee5\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u8ba8\u8bba\u5b83\u4eec\u3002<\/p>\n<h4>5\u3001HTML5\u4e2d\u7684\u5217\u8868<\/h4>\n<p>\u5728HTML\u4e2d\uff0c\u65e0\u5e8f\u5217\u8868\u57fa\u672c\u4e0a\u4fdd\u6301\u4e0d\u53d8\uff0c\u867d\u7136\u4f3c\u4e4e\u73b0\u5728\u5b83\u88ab\u7b80\u79f0\u4e3a\u201c\u5217\u8868\u201d\uff0c\u65b0\u7684<code>&lt;nav&gt;<\/code>\u5143\u7d20\u5c06\u88ab\u7528\u6765\u5305\u88f9\u5217\u8868\u5f53\u4f5c\u5bfc\u822a\u4f7f\u7528\u3002<\/p>\n<p><code>&lt;ol&gt;<\/code>\u5143\u7d20\u6709\u8f7b\u5fae\u7684\u6539\u53d8\uff0c\u5b83\u83b7\u5f97\u4e86\u4e24\u4e2a\u65b0\u5c5e\u6027\uff1a<code>reversed<\/code>\uff0c\u8fd9\u662f\u4e00\u4e2a\u5e03\u5c14\u503c\uff0c\u7528\u6765\u8868\u793a\u5217\u8868\u662f\u4e0a\u5347\u8fd8\u662f\u4e0b\u964d\uff1b<code>start<\/code>\uff0c\u8fd9\u662f\u4e2a\u6574\u6570\uff0c\u7528\u4ee5\u5ba3\u544a\u6709\u5e8f\u5217\u8868\u7684\u8d77\u70b9\u3002<\/p>\n<p>\u6b64\u5916\uff0c<code>&lt;figure&gt;<\/code>\u548c<code>&lt;details&gt;<\/code>\u5143\u7d20\u5c06\u88ab\u589e\u52a0\uff0c\u5b83\u4eec\u4f1a\u6709\u5b50\u5143\u7d20\uff0c\u5176\u4e2d\u5305\u62ec<code>&lt;dt&gt;<\/code>\u548c<code>&lt;dd&gt;<\/code>\u5143\u7d20\u3002<\/p>\n<p>\u66f4\u591a\u5173\u4e8eHTML5\u65b9\u9762\u7684\u77e5\u8bc6\u53ef\u4ee5\u53c2\u89c1\u6dd8\u5b9d<a target=\"_blank\" href=\"http:\/\/ued.taobao.com\/blog\/author\/kongyan\/\" title=\"\u7a7a\u96c1\">\u7a7a\u96c1<\/a>\u7684<a target=\"_blank\" href=\"http:\/\/ued.taobao.com\/blog\/2009\/12\/17\/html5_css3\/\" title=\"\u63ed\u79d8HTML5\u548cCSS3\u3010\u73cd\u73e0\u5976\u8336\u5e2e\u3011\"> \u63ed\u79d8HTML5\u548cCSS3\u3010\u73cd\u73e0\u5976\u8336\u5e2e\u3011<\/a>\u7684\u8fd9\u7bc7\u6587\u7ae0\u3002\u53e6\u5916\u60a8\u8fd8\u53ef\u4ee5\u70b9\u51fb<a target=\"_blank\" href=\"http:\/\/docs.google.com\/present\/view?id=dhpdbrp_51hf88z8g8\">\u8fd9\u91cc<\/a>\u67e5\u770b\u5728\u7ebf\u7684ppt\u3002<\/p>\n<h3>\u4e09\u3001\u6d4f\u89c8\u5668\u5dee\u5f02<\/h3>\n<p>\u4e0b\u9762\u5c55\u793a\u7684\u90fd\u662f\u4e00\u4e9b\u6bd4\u8f83\u5e38\u89c1\u7684\u4e14\u660e\u663e\u7684\u6d4f\u89c8\u5668\u5dee\u5f02\u3002<\/p>\n<h4>1\u3001\u5217\u8868\u5143\u7d20\u6dfb\u52a0display:block\u540e<\/h4>\n<p>\u5728Internet Explorer 8, Opera 9, Chrome, Firefox 2 &#038; 3, and Safari\u4e0b\uff0c\u6dfb\u52a0display:block\u4f1a\u8ba9\u6709\u5e8f\u6216\u65e0\u5e8f\u5217\u8868\u4e2dli\u5143\u7d20\u7684\u9879\u76ee\u7f16\u53f7\u6d88\u5931\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"display:block\u8ba9Firefox3\u4e0b\u5217\u8868\u7b26\u53f7\u6d88\u5931\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_035058.png\" title=\"display:block\u8ba9Firefox3\u4e0b\u5217\u8868\u7b26\u53f7\u6d88\u5931\" class=\"alignnone\" width=\"239\" height=\"106\" \/><\/p>\n<p>\u4f46\u5728IE6\u548cIE7\u4e0b\uff0c\u6dfb\u52a0<code>display:block<\/code>\u9879\u76ee\u7b26\u53f7\u4f9d\u65e7\u5b58\u5728\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"IE7\u4e0bli\u8bbe\u7f6edisplay:block\u540e\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_035700.png\" title=\"IE7\u4e0bli\u8bbe\u7f6edisplay:block\u540e\" width=\"264\" height=\"164\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/li-display-block-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<h4>2\u3001\u5217\u8868\u9879\u76ee\u6dfb\u52a0float:left<\/h4>\n<p>\u5728IE6\u548cIE7\u4e0b\uff0c\u7ed9\u5217\u8868\u9879\u76ee\uff08\u6ca1\u6709\u5176\u4ed6\u6837\u5f0f\uff09\u6dfb\u52a0float:left\u5c06\u4f1a\u4f7f\u5217\u8868\u9879\u6c34\u5e73\u5bf9\u9f50\uff0c\u540c\u65f6\u9879\u76ee\u7b26\u53f7\uff08\u6216\u9879\u76ee\u7f16\u53f7\uff09\u6d88\u5931\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u622a\u81eaIE7\u6d4f\u89c8\u5668\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"IE7\u6d6e\u52a8\u4f7f\u9879\u76ee\u7b26\u53f7\u6d88\u5931\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_040351.png\" title=\"IE7\u6d6e\u52a8\u4f7f\u9879\u76ee\u7b26\u53f7\u6d88\u5931\" width=\"401\" height=\"110\" \/><\/p>\n<p>IE8\u548c\u5176\u4ed6\u6240\u6709\u6d4f\u89c8\u5668\u4e0b\uff0c\u5217\u8868\u9879\u4f1a\u6c34\u5e73\u5bf9\u9f50\uff0c\u4f46\u662f\u9879\u76ee\u7b26\u53f7\uff08\u6216\u9879\u76ee\u7f16\u53f7\uff09\u4ecd\u7136\u53ef\u89c1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"Firefox\u4e0b\u6d6e\u52a8\u4e0d\u4f1a\u5f71\u54cd\u5217\u8868\u7b26\u53f7\u7684\u663e\u793a\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_040848.png\" title=\"Firefox\u4e0b\u6d6e\u52a8\u4e0d\u4f1a\u5f71\u54cd\u5217\u8868\u7b26\u53f7\u7684\u663e\u793a\" width=\"393\" height=\"72\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/li-float-left-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<p>\u5f53\u5217\u8868\u9879\u6d6e\u52a8\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5fc5\u987b\u8bb0\u4f4f\u53e6\u5916\u4e00\u4e2a\u8981\u70b9\uff0c\u5c31\u662f\u5217\u8868\u5bb9\u5668\uff08<code>ul<\/code>\u5143\u7d20\uff09\u5728\u5185\u90e8\u4ec5\u6709\u6d6e\u52a8\u5143\u7d20\u65f6\u4f1a\u6b7b\u7fd8\u7fd8\uff0c\u8fd9\u5728\u6240\u6709\u7684\u6d4f\u89c8\u5668\u4e0b\u90fd\u4f1a\u4ee5\u76f8\u540c\u7684\u65b9\u5f0f\u53d1\u751f\uff0c\u6dfb\u52a0<code>overflow:hidden<\/code>\u662f\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002<\/p>\n<p>\u4e3a\u4e86\u80fd\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u8fbe\u5230\u5927\u81f4\u76f8\u540c\u7684<code>float:left<\/code>\u6548\u679c\uff0c\u6700\u597d\u7684\u65b9\u6cd5\u662f\u662f\u4f7f\u7528<code>display:inline<\/code>\u3002<\/p>\n<h4>3\u3001IE\u4e0b\u6709\u201cLayout\u201d\u7684\u6709\u5e8f\u5217\u8868<\/h4>\n<p>\u5728IE6\u548cIE7\u4e0b\uff0c\u5982\u679c\u6709\u5e8f\u5217\u8868\u4e2d\u7684\u5217\u8868\u9879\u6709\u201cLayout\u201d\uff0c\u5219\u6709\u5e8f\u5217\u8868\u7684\u6570\u503c\u5c06\u4e0d\u4f1a\u589e\u52a0\uff0c\u663e\u793a\u4e3a\u201c1\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"li haslayout\u540e\u5728IE6\u548cIE8\u4e0b\u7684\u5bf9\u6bd4\u8868\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/haslayout-ol.png\" title=\"li haslayout\u540e\u5728IE6\u548cIE8\u4e0b\u7684\u5bf9\u6bd4\u8868\u73b0\" width=\"500\" height=\"138\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/ol-haslayout-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<p><code>hasLayout<\/code>\u5c5e\u6027\u4e0d\u80fd\u88ab\u76f4\u63a5\u8bbe\u7f6e\uff0c\u4f46\u662f\u5982\u679c\u4e00\u4e2a\u5143\u7d20\u8bbe\u7f6e\u4e86\u5bbd\u9ad8\uff0c\u6d6e\u52a8\uff0c\u7edd\u5bf9\u5b9a\u4f4d\u7b49\u5f85\u5c31\u4f1a\u6539\u53d8<code>haslayout<\/code>\u3002<\/p>\n<h4>4\u3001IE6&#038;IE7\u4e0b\u7684padding\u53camargin<\/h4>\n<p>\u5728\u5927\u90e8\u5206\u7684\u6d4f\u89c8\u5668\u4e0b\uff0c\u4e3a\u4e86\u79fb\u9664\u9879\u76ee\u7b26\u53f7\u6216\u9879\u76ee\u7f16\u53f7\uff0c\u8ba9\u5185\u5bb9\u5de6\u4fa7\u5bf9\u9f50\u663e\u793a\uff0c\u9700\u8981\u8bbe\u7f6e\u5de6<code>padding<\/code>\u4e3a<code>0<\/code>\uff0c\u4f46\u662f\u8fd9\u5728IE6\u548cIE7\u4e0b\u5e76\u4e0d\u7ba1\u7528\uff0c\u5728IE6\uff0c7\u4e0b\u9700\u8981\u8bbe\u7f6e\u5de6<code>margin<\/code>\u4e3a<code>0<\/code>\u53d6\u800c\u4ee3\u4e4b\u3002\u89c1\u4e0b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgpad\" alt=\"IE6\u4e0bpadding-left\u4e3a0\u4e0d\u8d77\u4f5c\u7528\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_042313.png\" title=\"IE6\u4e0bpadding-left\u4e3a0\u4e0d\u8d77\u4f5c\u7528\" class=\"alignnone\" width=\"369\" height=\"120\" \/><\/p>\n<p><a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/li-padding-left-behavior.html\">demo\u9875\u9762<\/a><\/p>\n<h4>5\u3001\u5728\u6240\u4ee5\u6d4f\u89c8\u5668\u4e0b\u5b9e\u73b0\u4e00\u81f4\u7684\u5217\u8868\u6837\u5f0f<\/h4>\n<p>\u4e3a\u4e86\u907f\u514d\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u5904\u7406\u5217\u8868\u6837\u5f0f\u7684\u65f6\u5019\u51fa\u73b0\u95ee\u9898\uff0c\u6700\u597d\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5728\u524d\u9762\u63d0\u5230\u7684<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/css-tools-css-reset.html\">CSS\u7684\u91cd\u7f6e(css reset)<\/a>\uff0cCSS reset\u51e0\u4e4e\u53ef\u4ee5\u5c06\u6d4f\u89c8\u5668\u6240\u6709\u9ed8\u8ba4\u8bbe\u7f6e\u5dee\u5f02\u8bbe\u7f6e\u4e3a\u6700\u5c0f\uff0c\u5e76\u5141\u8bb8\u6240\u6709\u6d4f\u89c8\u5668\u4e0b\u90fd\u5728\u540c\u6837\u7684\u57fa\u7840\u4e0a\u5de5\u4f5c\u3002\u867d\u7136\u67d0\u4e9b\u6837\u5f0f\u4e0b\u4f9d\u7136\u5b58\u5728\u5dee\u5f02\uff0c\u4f46\u662f\u5b83\u4eec\u4e0d\u4f1a\u88ab\u5f53\u4f5c\u4e00\u4e2a\u96be\u70b9\u6765\u5904\u7406\u4e86\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u6b63\u5982\u524d\u9762\u63d0\u5230\u4e86\uff0c\u6700\u597d\u5b8c\u5168\u907f\u514d\u4f7f\u7528<code>list-style-image<\/code>\u5c5e\u6027\uff0c\u800c\u4ee5\u8bbe\u7f6e<code>background<\/code>\u4ee3\u66ff\uff0c\u8fd9\u662f\u4e00\u4e2a\u8de8\u6d4f\u89c8\u5668\u7684\uff0c\u6613\u4e8e\u7ef4\u62a4\u7684\u65e0\u5e8f\u5217\u8868\u7684\u81ea\u5b9a\u4e49\u7b26\u53f7\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<h3>\u56db\u3001\u4e00\u4e9b\u5b9e\u4f8b\u4e0e\u5e94\u7528<\/h3>\n<h4>1\u3001\u5bfc\u822a\u6761<\/h4>\n<p>\u8fc4\u4eca\u4e3a\u6b62\uff0c\u65e0\u5e8f\u5217\u8868\u6700\u5e38\u89c1\u7684\u7528\u9014\u5c31\u662f\u5bfc\u822a\u6761\uff0c\u65e0\u8bba\u662f\u6c34\u5e73\u7684\u8fd8\u662f\u5782\u76f4\u7684\uff0c\u81ea\u4ece\u57fa\u4e8e\u8868\u7684\u5e03\u5c40\u5df2\u7ecf\u8fc7\u65f6\uff0c\u65e0\u5e8f\u5217\u8868\u5df2\u7ecf\u88ab\u5f53\u4f5c\u5bfc\u822a\u5143\u7d20\u7684\u57fa\u7840\u88ab\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u539f\u56e0\u5982\u4e0b\u5217\u8868\u6240\u793a\uff1a<\/p>\n<ul>\n<li>\u65e0\u5e8f\u5217\u8868\u5c5e\u4e8e<code>block<\/code>\u6c34\u5e73\u7684\u5143\u7d20\uff0c\u4e0d\u9700\u8981\u518d\u5728\u5916\u9762\u5305\u88f9\u4e00\u4e2a<code>div<\/code>\u4ee5\u5e94\u7528<code>background<\/code>\u6216\u5176\u4ed6\u56fe\u5f62\u6269\u5c55\u3002<\/li>\n<li>\u5f53\u6837\u5f0f\u88ab\u7981\u7528\u7684\u65f6\u5019\uff0c\u5217\u8868\u6837\u5f0f\u4f1a\u4ece\u5bb9\u7684\u964d\u7ea7\uff0c\u4fdd\u6301\u5176\u672c\u6765\u6837\u5f0f\uff0c\u53ef\u786e\u4fdd\u5bfc\u822a\u9879\u4e0e\u9875\u9762\u5176\u4ed6\u5185\u5bb9\u8868\u73b0\u7684\u4e0d\u4e00\u6837\u3002<\/li>\n<li>\u5c3d\u7ba1\u65e0\u5e8f\u5217\u8868\u4e0d\u4f1a\u4ec5\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5217\u8868\uff0c\u8981\u6dfb\u52a0\u8bf8\u5982<code>&lt;a&gt;<\/code>\u6807\u7b7e\u4e4b\u7c7b\u7684\u5143\u7d20\uff0c\u4f46\u662f\u989d\u5916\u7684<code>&lt;li&gt;<\/code>\u5143\u7d20\u4f1a\u4f7f\u5bfc\u822a\u680f\u4ee5\u66f4\u7075\u6d3b\u7684\u5f62\u5f0f\u8868\u73b0\u3002<\/li>\n<li>\u5bfc\u822a\u5206\u4e3a\u5217\u8868\u548c\/\u6216\u526f\u5217\u8868\uff0c\u5141\u8bb8\u4f7f\u7528\u8f85\u52a9\u7684\u6280\u672f\uff08\u5982\u5c4f\u5e55\u9605\u8bfb\u5668\uff09\uff0c\u7528\u6237\u53ef\u4ee5\u5f88\u8f7b\u677e\u5730\u8df3\u8fc7\u6574\u4e2a\u5bfc\u822a\u6761\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=450\">\u91c7\u7528jQuery\u5b9e\u73b0\u7684LavaLamp\u7279\u6548\u83dc\u5355<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"68\" width=\"480\" class=\"mt20\" title=\"\u706b\u7130\u706f\u7279\u6548\u83dc\u5355\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-21_195642.png\" alt=\"\u706b\u7130\u706f\u7279\u6548\u83dc\u5355\"\/><\/p>\n<h4>2\u3001\u4e0b\u62c9\u83dc\u5355<\/h4>\n<p>\u4f8b\u5982\u524d\u6bb5\u65f6\u95f4\u6211\u5236\u4f5c\u7684\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u5b9e\u4f8b\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=458\">jQuery\u4e4b\u4f7f\u7528slideToggle\u5b9e\u73b0\u5782\u76f4\u4e0b\u62c9\u83dc\u5355<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" height=\"160\" width=\"163\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-22_032513.png\"\/><\/p>\n<p><a href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/jquery-drop-down-menu.html\" target=\"_blank\" class=\"a_link\">\u6548\u679cdemo<\/a><\/p>\n<h4>3\u3001\u7167\u7247\u663e\u793a<\/h4>\n<p>HTML\u5217\u8868\u6807\u7b7e<code>&lt;li&gt;<\/code>\u63d0\u4f9b\u4e86\u6709\u6548\u7684\u65b9\u5f0f\u663e\u793a\u7167\u7247\u5217\u8868\uff0c\u539f\u56e0\u4e0e\u4e0a\u9762\u5bfc\u822a\u6761\u63d0\u5230\u7684\u4e00\u6837\u3002\u4e0b\u9762\u5c31\u662f\u4e00\u4e9b\u4ee5<code>&lt;li&gt;<\/code>\u6807\u7b7e\u4e3aHTML\u57fa\u7840\u7684\u7684\u7167\u7247\u753b\u5eca\u6216\u662f\u7167\u7247\u663e\u793a\u7ec4\u4ef6\u3002<\/p>\n<p><a target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=477\">jCarousel<\/a><br \/>\njCarousel\u7167\u7247\u5207\u6362\u4f20\u9001jQuery\u63d2\u4ef6\u63d0\u4f9b\u4e86\u53ef\u81ea\u5b9a\u4e49\u7684jQuery\u529f\u80fd\uff0c\u4f7f\u7528\u4e86\u65e0\u5e8f\u5217\u8868\uff0c\u53ef\u4ee5\u4ee5\u591a\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u663e\u793a\u4f20\u9001\u6548\u679c\u3002\u6211\u5df2\u7ecf\u5c06\u6b64\u63d2\u4ef6\u7ffb\u8bd1\u6210\u4e2d\u6587\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/jq\/jcarousel_zh\/\">jCarousel\u4e2d\u6587demo\u9996\u9875<\/a><\/p>\n<p><a target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=454\">InnerFade \u2013 jQuery<\/a><br \/>\ninnerfade\u63d2\u4ef6\u80fd\u8ba9\u4efb\u610f\u5217\u8868\u5f62\u5f0f\u7684\u5185\u5bb9\u4f9d\u6b21\u6de1\u5165\u6de1\u51fa\u5207\u6362\u663e\u793a\uff0c\u6216\u662f\u4e0a\u4e0b\u5207\u6362\u663e\u793a\u3002\u5185\u5bb9\u53ef\u4ee5\u662f\u6587\u5b57\uff0c\u56fe\u7247\u7b49\u3002\u652f\u6301\u5404\u5f0f\u6807\u7b7e\uff0c\u5217\u8868\u6807\u7b7e<code>&lt;li&gt;<\/code>\u6216\u662f<code>&lt;div&gt;<\/code>\uff0c<code>&lt;p&gt;<\/code>\u6807\u7b7e\u90fd\u53ef\u4ee5\u3002<\/p>\n<p>\u53ef\u4ee5\u975e\u5e38\u8f7b\u677e\u7684\u5b9e\u73b0\u8bf8\u5982\u65b0\u95fb\u6216\u516c\u544a\u5185\u5bb9\u7684\u81ea\u52a8\u968f\u673a\u5207\u6362\u663e\u793a\uff0c\u6216\u662f\u56fe\u7247\u5e7b\u706f\u7247\u7684\u64ad\u653e\u663e\u793a\u7b49\u3002\u4e0b\u56fe\u5c55\u793a\u7684\u662f\u56fe\u7247\u5e7b\u706f\u7247\u5207\u6362\u7684\u8fc7\u6e21\u9636\u6bb5:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201712\/2017-12-31_211340.png\" width=\"374\" height=\"263\" alt=\"\u6de1\u5165\u6de1\u51fa\u5207\u6362\u8fc7\u7a0b\u4e2d\" class=\"alignnone\"><\/p>\n<p>\u6b64\u63d2\u4ef6demo\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a <a href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/inner-fade-jquery-plugin.html\" target=\"_blank\" class=\"a_link\">InnerFade demo\u9875\u9762<\/a><\/p>\n<h4>4\u3001\u4ee3\u7801\u9ad8\u4eae<\/h4>\n<p>\u8bb8\u591a\u535a\u5ba2\u548c\u6559\u7a0b\u7f51\u7ad9\u542b\u6709JavaScript\u9ad8\u4eae\u4ee3\u7801\u7684\u90fd\u662f\u8f6c\u6362<code>&lt;pre&gt;<\/code>\u5143\u7d20\u6216<code>&lt;textarea&gt;<\/code>\u5143\u7d20\u4e3a\u6709\u5e8f\u5217\u8868\uff0c\u5982\u4e0b\u9762\u7684\u622a\u56fe\u3002\u5176\u4e2d\u6709\u540d\u7684\u4e00\u6b3e\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\u662f<a target=\"_blank\" href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/\">Alex Gorbatchev\u2019s SyntaxHighlighter<\/a>\u3002<\/p>\n<p>\u4e0b\u4e3a\u7c7b\u4f3c\u9ad8\u4eae\u63d2\u4ef6\u7684\u6548\u679c\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\u9ad8\u4eae\u4ee3\u7801\u622a\u56fe\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_044732.png\" title=\"\u9ad8\u4eae\u4ee3\u7801\u622a\u56fe\" class=\"alignnone\" width=\"494\" height=\"226\" \/><\/p>\n<p>\u60a8\u53ef\u4ee5\u70b9\u51fb<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/code-cookie-plugin-js.html\">\u8fd9\u91cc<\/a>\u9884\u89c8\u6548\u679c\uff08demo\u9875\u9762\u5c55\u793a\u7684\u662fjQuery cookie\u63d2\u4ef6\u4ee3\u7801\uff09\u3002<\/p>\n<h4>5\u3001\u535a\u5ba2\u8bc4\u8bba<\/h4>\n<p>\u535a\u5ba2\u8bc4\u8bba\uff0c\u5305\u62ec\u8fd9\u4e9bWordPress\u9a71\u52a8\u7684\u7ad9\u70b9\uff0c\u4ee5\u6709\u5e8f\u5217\u8868\u6784\u5efa\uff0c\u63d0\u4f9b\u975e\u5e38\u7075\u6d3b\u7684\u6837\u5f0f\u9009\u9879\uff0c\u5e76\u5960\u5b9a\u4e86\u8bc4\u8bba\u5d4c\u5957\u7684\u57fa\u7840\u3002\u4e0b\u56fe\u622a\u81ea\u817e\u8bafCDC T.d \u6628\u5929\u53d1\u5e03\u7684<a href=\"http:\/\/cdc.tencent.com\/?p=2060\">The Story of Mr.Gray \u2014 Web \u4ea4\u4e92\u8bbe\u8ba1\u201c\u7070\u8272\u201d\u76848\u7c7b\u5e94\u7528<\/a>\u4e00\u6587\u8bc4\u8bba\u90e8\u5206\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"WordPress\u8bc4\u8bba\u622a\u56fe\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_045319.png\" title=\"WordPress\u8bc4\u8bba\u622a\u56fe\" class=\"alignnone\" width=\"522\" height=\"240\" \/><\/p>\n<h4>6\u3001\u5546\u54c1\u5217\u8868<\/h4>\n<p>\u6700\u5178\u578b\u7684\u4ee3\u8868\u83ab\u8fc7\u4e8e\u6dd8\u5b9d\u7f51\u9996\u9875\u7684\u201c\u5b9d\u8d1d\u7c7b\u76ee\u201d\u4e00\u680f\u7684\u4e07\u5343\u5546\u54c1\u7c7b\u76ee\u7684\u663e\u793a\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u6dd8\u5b9d\u7f51\u9996\u9875\u5b9a\u4e49\u5217\u8868\u4e0e\u5546\u54c1\u7c7b\u76ee\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-30_050000.png\" title=\"\u6dd8\u5b9d\u7f51\u9996\u9875\u5b9a\u4e49\u5217\u8868\u4e0e\u5546\u54c1\u7c7b\u76ee\" class=\"alignnone\" width=\"421\" height=\"282\" \/><\/p>\n<p>\u4ece\u622a\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u8fd9\u91cc\u7c7b\u76ee\u7684\u663e\u793a\u4f7f\u7528\u7684\u662fdl,dt,dd\u5b9a\u4e49\u5217\u8868\u5b9e\u73b0\u7684\u3002<\/p>\n<h4>7\u3001\u5176\u4ed6<\/h4>\n<p>\u5217\u8868\u5143\u7d20\u7684\u5176\u4ed6\u5e94\u7528\u8fd8\u6709\u5f88\u591a\uff0c\u4f8b\u5982\u591a\u56fe\u7247\u4e0a\u4f20\u7684\u8fdb\u5ea6\u6761\uff0cCSS\u6b65\u9aa4\u83dc\u5355\uff0c\u91cd\u53e0\u83dc\u5355\u7b49\u7b49\u3002\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u5c55\u793a\u4e86\u3002<\/p>\n<h3>\u4e94\u3001\u53ef\u6709\u53ef\u65e0\u7684\u603b\u7ed3<\/h3>\n<p>HTML\u6807\u7b7e\u5143\u7d20\u5c31\u662f\u7816\u7816\u74e6\u74e6\uff0c\u770b\u4e0a\u53bb\u5f88\u4e00\u822c\uff0c\u4f46\u662f\u5230\u4e86\u4f18\u79c0\u7684\u8bbe\u8ba1\u5e08\u624b\u91cc\u548c\u4f18\u79c0\u7684\u5de5\u4eba\u90a3\u91cc\u5c31\u4f1a\u53d1\u6325\u51fa\u65e0\u9650\u7684\u6f5c\u529b\u4e0e\u9b45\u529b\uff0c\u4e8e\u662f\u6709\u4e86\u6211\u4eec\u591a\u59ff\u591a\u5f69\u7684\u4e92\u8054\u7f51\u3002\u5217\u8868\u5143\u7d20\u4e5f\u662f\u5982\u6b64\uff0c\u867d\u7136\u8fd8\u6709\u51e0\u5341\u66f4\u591a\u7684\u7528\u9014\u548c\u6280\u672f\u53ef\u4ee5\u5728\u672c\u6587\u4e2d\u8ba8\u8bba\uff0c\u4f46\u662f\u672c\u6587\u5c55\u793a\u7684\u4e00\u4e9b\u4e1c\u897f\u4ee5\u8ba9\u6211\u4eec\u5f7b\u5e95\u7684\u4e86\u89e3HTML\u4e2d\u5217\u8868\u6807\u7b7e\u5143\u7d20\u7684\u7684\u6982\u8c8c\uff0c\u5e2e\u52a9\u60a8\u7528\u5217\u8868\u8fd9\u7c7b\u7816\u74e6\u6784\u5efa\u51fa\u6f02\u4eae\u7684\u201c\u4e92\u8054\u7f51\u5efa\u7b51\u201d\u3002<\/p>\n<h3>\u516d\u3001\u53c2\u8003\u9605\u8bfb\u4e0e\u5ef6\u4f38\u9605\u8bfb<\/h3>\n<ul>\n<li><a href=\"http:\/\/css.maxdesign.com.au\/listamatic\/\">The Listamatic<\/a><\/li>\n<li><a href=\"http:\/\/www.alistapart.com\/articles\/taminglists\/\">CSS Design: Taming Lists<\/a><\/li>\n<li><a href=\"http:\/\/www.w3schools.com\/CSS\/css_list.asp\">CSS Lists on W3Schools<\/a><\/li>\n<li><a href=\"http:\/\/www.maxdesign.com.au\/presentation\/definition\/\">Definition lists \u2013 misused or misunderstood?<\/a><\/li>\n<li><a href=\"http:\/\/www.noupe.com\/css\/css-styled-lists-20-demos-tutorials-and-best-of.html\">CSS-Styled Lists: 20+ Demos, Tutorials and Best Practices<\/a><\/li>\n<li><a href=\"http:\/\/reference.sitepoint.com\/html\/elements-list\">List Elements on Sitepoint\u2019s HTML Reference<\/a><\/li>\n<\/ul>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea<a href=\"http:\/\/www.zhangxinxu.com\/\">\u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<\/a>[<a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a>]<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=489\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=489<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML\u6807\u7b7e\u5143\u7d20\u5c31\u662f\u7816\u7816\u74e6\u74e6\uff0c\u770b\u4e0a\u53bb\u5f88\u4e00\u822c\uff0c\u4f46\u662f\u5230\u4e86\u4f18\u79c0\u7684\u8bbe\u8ba1\u5e08\u624b\u91cc\u548c\u4f18\u79c0\u7684\u5de5\u4eba\u90a3\u91cc\u5c31\u4f1a\u53d1\u6325\u51fa\u65e0\u9650\u7684\u6f5c\u529b\u4e0e\u9b45\u529b\uff0c\u4e8e\u662f\u6709\u4e86\u6211\u4eec\u591a\u59ff\u591a\u5f69\u7684\u4e92\u8054\u7f51\u3002\u5217\u8868\u5143\u7d20\u4e5f\u662f\u5982\u6b64\uff0cHTML\u5217\u8868\u5143\u7d20\uff08\u5982ol,ul,dl\uff09\u7b49\u5728\u73b0\u4e0b\u7684\u7f51\u7ad9\u5f00\u53d1\u5236\u4f5c\u4e2d\u6709\u7740\u975e\u5e38\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u7136\u800c\uff0c\u5b83\u4eec\u7684\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u813e\u6c14\u5374\u4e0d\u4e00\u6837\u3002\u672c\u6587\u5c31\u662f\u5206\u6790\u8fd9\u4e9b\u5217\u8868\u5143\u7d20\u7684\u57fa\u672c\u7279\u6027\uff0c\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0b\u7684\u5404\u7c7b\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4ee5\u53ca\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u7b49\u3002\u867d\u7136\u8fd8\u6709\u51e0\u5341\u66f4\u591a\u7684\u7528\u9014\u548c\u6280\u672f\u53ef\u4ee5\u5728\u672c\u6587\u4e2d\u8ba8\u8bba\uff0c\u4f46\u662f\u672c\u6587\u5c55\u793a\u7684\u4e00\u4e9b\u4e1c\u897f\u4ee5\u8ba9\u6211\u4eec\u5f7b\u5e95\u7684\u4e86\u89e3HTML\u4e2d\u5217\u8868\u6807\u7b7e\u5143\u7d20\u7684\u7684\u6982\u8c8c\uff0c\u5e2e\u52a9\u60a8\u7528\u5217\u8868\u8fd9\u7c7b\u7816\u74e6\u6784\u5efa\u51fa\u6f02\u4eae\u7684\u201c\u4e92\u8054\u7f51\u5efa\u7b51\u201d\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[262,1271,285,155,9,52,286,279,14,283,284,282,140,281,263,139,233,246],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/489"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}