{"id":79,"date":"2013-12-03T11:10:44","date_gmt":"2013-12-03T03:10:44","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9adivcss%e4%b9%8b%e7%ac%ac%e4%b8%83%e5%a4%a9%ef%bc%9a%e6%a8%aa%e5%90%91%e5%af%bc%e8%88%aa%e8%8f%9c%e5%8d%95\/"},"modified":"2013-12-03T11:10:44","modified_gmt":"2013-12-03T03:10:44","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9adivcss%e4%b9%8b%e7%ac%ac%e4%b8%83%e5%a4%a9%ef%bc%9a%e6%a8%aa%e5%90%91%e5%af%bc%e8%88%aa%e8%8f%9c%e5%8d%95","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9adivcss%e4%b9%8b%e7%ac%ac%e4%b8%83%e5%a4%a9%ef%bc%9a%e6%a8%aa%e5%90%91%e5%af%bc%e8%88%aa%e8%8f%9c%e5%8d%95\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aDIV+CSS\u4e4b\u7b2c\u4e03\u5929\uff1a\u6a2a\u5411\u5bfc\u822a\u83dc\u5355"},"content":{"rendered":"<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u4eca\u5929\u6211\u4eec\u5f00\u59cb\u5b66\u4e60\u300a\u5341\u5929\u5b66\u4f1aweb\u6807\u51c6(div+css)\u300b\u7684\u6a2a\u5411\u5bfc\u822a\u83dc\u5355\uff0c\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9\u548c\u77e5\u8bc6\u70b9\uff1a<br \/>\n\u2022&nbsp;&nbsp; &nbsp;\u6a2a\u5411\u5217\u8868\u83dc\u5355<br \/>\n\u2022&nbsp;&nbsp; &nbsp;\u7528\u56fe\u7247\u7f8e\u5316\u7684\u6a2a\u5411\u5bfc\u822a<br \/>\n\u2022&nbsp;&nbsp; &nbsp;css Sprites<br \/>\n\u4e00\u3001\u6a2a\u5411\u5217\u8868\u83dc\u5355<br \/>\n\u524d\u8fb9\u5b66\u4e60\u8fc7\u7eb5\u5411\u5bfc\u822a\u83dc\u5355\uff0c\u53c8\u5b66\u4e60\u4e86float\u5c5e\u6027\uff0c\u90a3\u4e48\u8981\u5b9e\u73b0\u6a2a\u5411\u5bfc\u822a\u83dc\u5355\u662f\u4e0d\u662f\u5f88\u7b80\u5355\u4e86\uff0c\u53ea\u9700\u8981\u628ali\u6a2a\u5411\u6392\u5217\u5c31\u53ef\u5b9e\u73b0\u4e86\u3002\u628a\u7b2c\u56db\u8282\u7684\u4ee3\u7801\u62ff\u8fc7\u6765\u76f4\u63a5\u7528\uff0c\u4fee\u6539\u540e\u7684\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;<br \/>\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=gb2312\" \/&gt;<br \/>\n&lt;style type=\"text\/css\"&gt;<br \/>\nbody { font-family: Verdana; font-size: 12px; line-height: 1.5; }<br \/>\na { color: #000; text-decoration: none; }<br \/>\na:hover { color: #F00; }<br \/>\n#menu { border: 1px solid #CCC; height:26px; background: #eee;}<br \/>\n#menu ul { list-style: none; margin: 0px; padding: 0px; }<br \/>\n#menu ul li { float:left; padding: 0px 8px; height: 26px; line-height: 26px; }<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div id=\"menu\"&gt;<br \/>\n&lt;ul&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u9996\u9875&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u7f51\u9875\u7248\u5f0f\u5e03\u5c40&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;div+css\u6559\u7a0b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;div+css\u5b9e\u4f8b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u5e38\u7528\u4ee3\u7801&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/code>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0013.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-752\" alt=\"image001\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0013-300x236.gif\" width=\"300\" height=\"236\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u6700\u4e3b\u8981\u5c31\u662f\u7528float\u8ba9li\u5411\u53f3\u6d6e\u52a8\u540e\uff0c\u5b9e\u73b0\u6a2a\u5411\u6392\u5217\uff0c\u5177\u4f53\u6b65\u9aa4\u4e0d\u518d\u8d58\u8ff0\u3002\u4ee5\u524d\u8bb8\u591a\u670b\u53cb\u63d0\u95ee\u600e\u4e48\u8ba9\u5b83\u6c34\u5e73\u5c45\u4e2d\uff0c\u5176\u5b9e\u5f88\u7b80\u5355\uff0c\u9996\u5148\u5bfc\u822a\u7684\u5bbd\u5ea6\u662f\u56fa\u5b9a\u7684\uff0c\u7136\u540e\u8bbe\u7f6emargin:0 auto;\u5373\u53ef\u5b9e\u73b0\u4e86\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0023.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-753\" alt=\"image002\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0023-300x181.gif\" width=\"300\" height=\"181\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u4e3a\u4e86\u7528\u6237\u4f53\u9a8c\u66f4\u52a0\u53cb\u597d\uff0c\u8fd8\u662f\u628aa\u8f6c\u6362\u6210\u5757\u7ea7\u5143\u7d20\uff0c\u4e5f\u53ef\u4ee5\u7ed9a\u8bbe\u7f6e\u80cc\u666f\u8272\u6216\u80cc\u666f\u56fe\u7247\u6765\u66f4\u52a0\u7f8e\u89c2\u4e86\uff0c\u53e6\u5916\u518d\u8bbe\u7f6e\u9f20\u6807\u653e\u4e0a\u65f6\u7684\u6837\u5f0f\u3002<br \/>\n<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">#menu { width:370px; margin:0 auto; border: 1px solid #CCC; height:26px; background: #eee;}<br \/>\n#menu ul { list-style: none; margin: 0px; padding: 0px; }<br \/>\n#menu ul li { float:left;}<br \/>\n#menu ul li a { display:block; padding: 0px 8px; height: 26px; line-height: 26px; float:left;}<br \/>\n#menu ul li a:hover { background:#333; color:#fff;}<\/code><br \/>\n\u5b66\u5230\u8fd9\u91cc\uff0c\u5e38\u7528\u7684\u6837\u5f0f\u5927\u90e8\u5206\u90fd\u6d89\u53ca\u5230\u4e86\uff0c\u4e5f\u8bb8\u8bb8\u591a\u4f60\u8fd8\u8bb0\u4e0d\u4f4f\uff0c\u4f46\u81f3\u5c11\u6df7\u4e2a\u8138\u719f\u3002\u4e3a\u4e86\u63d0\u9ad8\u6548\u7387\uff0c\u5efa\u8bae\u5927\u5bb6\u8fd8\u662f\u624b\u5199\u4ee3\u7801\uff0c\u5982\u679c\u4f60\u8fd8\u4e0d\u80fd\u624b\u5199\u4ee3\u7801\uff0c\u5c31\u53c2\u8003\u4e0a\u8fb9\u7684\u6837\u5f0f\uff0c\u81ea\u5df1\u5728css\u7f16\u8f91\u5668\u91cc\u8bbe\u7f6e\u5427\uff0c\u4e0d\u518d\u5927\u91cfj\u4e86\u3002<br \/>\n\u7ecf\u8fc7\u4e0a\u8fb9\u7684\u4fee\u6539\uff0c\u73b0\u5728\u7684\u7528\u6237\u68c0\u9a8c\u662f\u4e0d\u662f\u66f4\u52a0\u53cb\u597d\u4e86\u5462\u3002\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0033.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-754\" alt=\"image003\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0033-300x236.gif\" width=\"300\" height=\"236\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u8fd9\u91cc\u7684#menu ul li a\u672c\u6765\u662f\u53ef\u4ee5\u4e0d\u52a0float:left\u7684\uff0c\u4f46IE6\u4e0b\u5728li\u6ca1\u6709\u8bbe\u7f6e\u5bbd\u5ea6\uff0c#menu ul li a\u8bbe\u7f6edisplay:block\u7684\u60c5\u51b5\u4e0b\uff0c\u5c06\u4f1a\u663e\u793a\u9519\u4e71\uff0c\u6240\u4ee5\u9700\u8981\u5728a\u4e0a\u589e\u52a0float:left\u6765\u4fee\u6b63\u3002\u4e07\u6076\u7684IE6\uff0c\u600e\u4e48\u5c31\u6dd8\u6c70\u4e0d\u6389\u5462<br \/>\n\u4e8c\u3001 \u7528\u56fe\u7247\u7f8e\u5316\u7684\u6a2a\u5411\u5bfc\u822a<br \/>\n\u80cc\u666f\u56fe\u7247\u4e5f\u662f\u7f51\u9875\u5236\u4f5c\u5f53\u4e2d\u6700\u5e38\u7528\u7684\u6837\u5f0f\u4e4b\u4e00\uff0c\u8fd0\u7528\u597d\u80cc\u666f\u56fe\u7247\uff0c\u53ef\u4ee5\u4f7f\u4f60\u7684\u9875\u9762\u66f4\u52a0\u51fa\u8272\uff0c\u66f4\u52a0\u4eba\u6027\u5316\u548c\u66f4\u5feb\u7684\u52a0\u8f7d\u901f\u5ea6\u3002\u4e0b\u9762\u8fd8\u662f\u7528\u4ee5\u524d\u89c6\u9891\u6559\u7a0b\u4e2d\u7684\u5b9e\u4f8b\u8fdb\u884c\u8bb2\u89e3\u3002\u663e\u793a\u6548\u679c\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0043.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-755\" alt=\"image004\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0043-300x29.gif\" width=\"300\" height=\"29\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u7528\u5230\u4e09\u5f20\u56fe\u7247\uff0c\u5206\u522b\u4e3a\u5f53\u524d\u72b6\u6001\uff0c\u9f20\u6807\u653e\u4e0a\u65f6\u6837\u5f0f\uff0c\u548c\u9ed8\u8ba4\u6837\u5f0f\u7528\u7684\u56fe\u7247\uff1a\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0053.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-756\" alt=\"image005\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0053.gif\" width=\"87\" height=\"28\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>&nbsp;<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0063.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-757\" alt=\"image006\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0063.gif\" width=\"87\" height=\"28\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>&nbsp;<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0073.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-758\" alt=\"image007\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0073.gif\" width=\"87\" height=\"28\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t\u4e0b\u9762\u4fee\u6539css\u6837\u5f0f\uff0c\u53eaj\u4e86\u4e00\u5f20\uff0c\u8bbe\u7f6e\u65b9\u6cd5\u76f8\u540c\uff1a\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0083.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-759\" alt=\"image008\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0083-300x181.gif\" width=\"300\" height=\"181\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">#menu { width:500px; height:28px; margin:0 auto; border-bottom:3px solid #E10001;}<br \/>\n#menu ul { list-style: none; margin: 0px; padding: 0px; }<br \/>\n#menu ul li { float:left; margin-left:2px;}<br \/>\n#menu ul li a { display:block; width:87px; height:28px; line-height:28px; text-align:center; background:url(\/upload\/2010-08\/17\/091033_nav_bg2.gif) 0 0 no-repeat; font-size:14px;}<br \/>\n#menu ul li a:hover { background:url(\/upload\/2010-08\/17\/091033_nav_bg3.gif) 0 0 no-repeat;}<br \/>\n#menu ul li a#current { background:url(\/upload\/2010-08\/17\/091033_nav_bg.gif) 0 0 no-repeat; font-weight:bold; color:#fff;}<\/code><br \/>\n\u4e3a\u4e86\u8ba9\u7528\u6237\u77e5\u9053\u5f53\u524d\u6240\u5904\u7684\u9875\u9762\uff0c\u505a\u4e86\u4e00\u4e2a\u5f53\u524d\u9875\u9762\u7684\u72b6\u6001\uff0c\u628aID\u6dfb\u52a0\u5230\u76f8\u5e94\u7684a\u4e0a\u3002\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">&lt;!DOCTYPE html<br \/>\nPUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;<br \/>\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=gb2312\"<br \/>\n\/&gt;<br \/>\n&lt;style type=\"text\/css\"&gt;<br \/>\nbody { font-family: Verdana; font-size: 12px; line-height: 1.5; }<br \/>\na { color: #000; text-decoration: none; }<br \/>\na:hover { color: #F00; }<br \/>\n#menu { width:500px; height:28px; margin:0 auto; border-bottom:3px solid<br \/>\n#E10001;}<br \/>\n#menu ul { list-style: none; margin: 0px; padding: 0px; }<br \/>\n#menu ul li { float:left; margin-left:2px;}<br \/>\n#menu ul li a { display:block; width:87px; height:28px;<br \/>\nline-height:28px; text-align:center;<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg2.gif) 0 0 no-repeat;<br \/>\nfont-size:14px;}<br \/>\n#menu ul li a:hover {<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg3.gif) 0 0 no-repeat;}<br \/>\n#menu ul li a#current {<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg1.gif) 0 0 no-repeat;<br \/>\nfont-weight:bold; color:#fff;}<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div id=\"menu\"&gt;<br \/>\n&lt;ul&gt;<br \/>\n&lt;li&gt;&lt;a id=\"current\" href=\"#\"&gt;\u9996\u9875&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u7f51\u9875\u7248\u5f0f&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;web\u6559\u7a0b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;web\u5b9e\u4f8b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u5e38\u7528\u4ee3\u7801&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/code><br \/>\n\u4e09\u3001 CSS Sprites\u6280\u672f<br \/>\nCSS Sprites\u5728\u56fd\u5185\u5f88\u591a\u4eba\u53ebcss\u7cbe\u7075\u6216css\u96ea\u78a7\u3002\u5b83\u662f\u628a\u7f51\u9875\u4e2d\u4e00\u4e9b\u80cc\u666f\u56fe\u7247\u6574\u5408\u5230\u4e00\u5f20\u56fe\u7247\u6587\u4ef6\u4e2d\uff0c\u518d\u5229\u7528CSS\u7684\u80cc\u666f\u56fe\u7247\u5b9a\u4f4d\u5230\u8981\u663e\u793a\u7684\u4f4d\u7f6e\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u51cf\u5c11\u6587\u4ef6\u4f53\u79ef\uff0c\u51cf\u5c11\u5bf9\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u6b21\u6570\uff0c\u63d0\u9ad8\u6548\u7387\u3002<br \/>\n\u8bb2CSS Sprites\u4e4b\u524d\uff0c\u5148\u628a\u80cc\u666f\u56fe\u7247\u7ed9\u641e\u6e05\u695a<br \/>\n<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">#menu ul li a { background:#ccc url(images\/nav_bg2.gif) 0 0 no-repeat; }<\/code><br \/>\ncss\u80cc\u666f\u5c5e\u6027\u7f29\u5199\u540e\u5982\u4e0a\u6240\u793a\uff0c#ccc\u8868\u793a\u80cc\u666f\u8272\uff1burl\uff08\uff09\u91cc\u662f\u80cc\u666f\u56fe\u7247\u8def\u5f84\uff1b\u63a5\u4e0b\u6765\u7684\u4e24\u4e2a\u6570\u503c\u53c2\u6570\u5206\u522b\u662f\u5de6\u53f3\u548c\u4e0a\u4e0b\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u8868\u793a\u8ddd\u5de6\u591a\u5c11 px\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u8ddd\u4e0a\u591a\u5c11\uff0c\u8fd9\u548cpadding\u7684\u7b80\u5199\u65b9\u5f0f\u662f\u4e0d \u4e00\u6837\uff0c\u4e00\u5b9a\u4e0d\u8981\u5f04\u6df7\u3002\u53e6\u5916\u518d\u5f3a\u8c03\u4e00\u70b9css\u4e2d\u503c\u4e3a0\u53ef\u4ee5\u4e0d\u5e26\u5355\u4f4d\uff0c\u5176\u5b83\u6570\u503c\u90fd\u5fc5\u987b\u5e26\u5355\u4f4d\uff08line-height\u503c\u4e3a\u591a\u5c11\u500d\u65f6\uff0czoom\uff0cz-index \u9664\u5916\uff09\uff1bno-repeat\u8868\u793a\u80cc\u666f\u56fe\u7247\u5411\u54ea\u4e2a\u65b9\u5411\u91cd\u590d\uff0c\u6b64\u65f6\u4e3a\u4e0d\u91cd\u590d\u3002<br \/>\n\u8fd8\u9700\u8bf4\u660e\u4e00\u70b9\u7684\u662f\u5b9a\u4f4d\u56fe\u7247\u4f4d\u7f6e\u7684\u53c2\u6570\u662f\u4ee5\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e3a\u539f\u70b9\u7684\uff0c\u7406\u89e3\u4e86\u8fd9\u4e9b\uff0cCSS Sprites\u6280\u672f\u5c31\u57fa\u672c\u4e0a\u61c2\u4e86\uff0c\u5c31\u662f\u9760\u80cc\u666f\u56fe\u7247\u5b9a\u4f4d\u6765\u5b9e\u73b0\u7684\u3002\u628a\u4e09\u5f20\u80cc\u666f\u56fe\u7247\u6574\u5408\u5230\u4e00\u5f20\u4e0a\uff0c\u5982\u4e0b\u56fe\uff1a\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0093.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-760\" alt=\"image009\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0093.gif\" width=\"87\" height=\"100\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<code style=\"width:635px;line-height:17px;font-family:tahoma, arial, sans-serif;color:#46618B;display:block;padding:5px;background-color:#ECECEC;margin:5px auto;border-width:1px 1px 1px 5px;border-style:dashed dashed dashed solid;border-color:#A3A5A8 #A3A5A8 #A3A5A8 #CCCCCC;text-indent:0px;\">&lt;!DOCTYPE html<br \/>\nPUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;<br \/>\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=gb2312\"<br \/>\n\/&gt;<br \/>\n&lt;style type=\"text\/css\"&gt;<br \/>\nbody { font-family: Verdana; font-size: 12px; line-height: 1.5; }<br \/>\na { color: #000; text-decoration: none; }<br \/>\na:hover { color: #F00; }<br \/>\n#menu { width:500px; height:28px; margin:0 auto; border-bottom:3px solid<br \/>\n#E10001;}<br \/>\n#menu ul { list-style: none; margin: 0px; padding: 0px; }<br \/>\n#menu ul li { float:left; margin-left:2px;}<br \/>\n#menu ul li a { display:block; width:87px; height:28px;<br \/>\nline-height:28px; text-align:center;<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg.gif) 0 -28px no-repeat;<br \/>\nfont-size:14px;}<br \/>\n#menu ul li a:hover {<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg.gif) 0 -56px no-repeat;}<br \/>\n#menu ul li a#current {<br \/>\nbackground:url(\/upload\/2010-08\/17\/091033_nav_bg.gif) 0 0 no-repeat;<br \/>\nfont-weight:bold; color:#fff;}<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div id=\"menu\"&gt;<br \/>\n&lt;ul&gt;<br \/>\n&lt;li&gt;&lt;a id=\"current\" href=\"#\"&gt;\u9996\u9875&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u7f51\u9875\u7248\u5f0f&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;web\u6559\u7a0b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;web\u5b9e\u4f8b&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\"&gt;\u5e38\u7528\u4ee3\u7801&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/code>\n<\/p>\n<p style=\"margin-top:0px;margin-bottom:10px;padding:0px;border:0px;font-size:13px;background-color:#FFFFFF;text-indent:2em;font-family:'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif;line-height:24px;white-space:normal;\">\n\t<a href=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0103.gif\" class=\"cboxElement\" rel=\"example4\" 751\"=\"\" style=\"text-decoration:none;color:#0196E3;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-761\" alt=\"image010\" src=\"http:\/\/www.mfweb8.com\/wp-content\/uploads\/2013\/06\/image0103-300x236.gif\" width=\"300\" height=\"236\" style=\"margin:0px 0px 10px;padding:0px;background-color:transparent;display:inline;\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u5f00\u59cb\u5b66\u4e60\u300a\u5341\u5929\u5b66\u4f1aweb\u6807\u51c6(div+css)\u300b\u7684\u6a2a\u5411\u5bfc\u822a\u83dc\u5355\uff0c\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9\u548c\u77e5\u8bc6\u70b9\uff1a \u2022&nbsp;&nbsp; &nbsp;\u6a2a\u5411\u5217\u8868\u83dc\u5355 \u2022&nbsp;&nbsp; &nbsp;\u7528\u56fe\u7247\u7f8e\u5316\u7684\u6a2a\u5411\u5bfc\u822a \u2022&nbsp;&nbsp; &nbsp;css Sprites \u4e00\u3001\u6a2a\u5411\u5217\u8868\u83dc\u5355 \u524d\u8fb9\u5b66\u4e60\u8fc7\u7eb5\u5411\u5bfc\u822a\u83dc\u5355\uff0c\u53c8\u5b66\u4e60\u4e86float\u5c5e\u6027\uff0c\u90a3\u4e48\u8981\u5b9e\u73b0\u6a2a\u5411\u5bfc\u822a\u83dc\u5355\u662f\u4e0d\u662f\u5f88\u7b80\u5355\u4e86\uff0c\u53ea\u9700\u8981\u628ali\u6a2a\u5411\u6392\u5217 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}