{"id":288,"date":"2010-03-27T12:52:51","date_gmt":"2010-03-27T12:52:51","guid":{"rendered":""},"modified":"2010-03-27T12:52:51","modified_gmt":"2010-03-27T12:52:51","slug":"288","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=288","title":{"rendered":"CSS\u5e38\u7528\u7f29\u5199\u8bed\u6cd5"},"content":{"rendered":"<p>\u4f7f\u7528\u7f29\u5199\u53ef\u4ee5\u5e2e\u52a9\u51cf\u5c11\u4f60CSS\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u66f4\u52a0\u5bb9\u6613\u9605\u8bfb\u3002css\u7f29\u5199\u7684\u4e3b\u8981\u89c4\u5219\u5982\u4e0b\uff1a<\/p>\n<p>\u989c\u8272<br \/>16\u8fdb\u5236\u7684\u8272\u5f69\u503c\uff0c\u5982\u679c\u6bcf\u4e24\u4f4d\u7684\u503c\u76f8\u540c\uff0c\u53ef\u4ee5\u7f29\u5199\u4e00\u534a\uff0c\u4f8b\u5982\uff1a<br \/>#000000\u53ef\u4ee5\u7f29\u5199\u4e3a#000;#336699\u53ef\u4ee5\u7f29\u5199\u4e3a#369;<\/p>\n<p>\u76d2\u5c3a\u5bf8<br \/>\u901a\u5e38\u6709\u4e0b\u9762\u56db\u79cd\u4e66\u5199\u65b9\u6cd5:<\/p>\n<p>property:value1; \u8868\u793a\u6240\u6709\u8fb9\u90fd\u662f\u4e00\u4e2a\u503cvalue1\uff1b <br \/>property:value1 value2; \u8868\u793atop\u548cbottom\u7684\u503c\u662fvalue1,right\u548cleft\u7684\u503c\u662fvalue2 <br \/>property:value1 value2 value3; \u8868\u793atop\u7684\u503c\u662fvalue1\uff0cright\u548cleft\u7684\u503c\u662fvalue2\uff0cbottom\u7684\u503c\u662fvalue3 <br \/>property:value1 value2 value3 value4; \u56db\u4e2a\u503c\u4f9d\u6b21\u8868\u793atop,right,bottom,left <br \/>\u65b9\u4fbf\u7684\u8bb0\u5fc6\u65b9\u6cd5\u662f\u987a\u65f6\u9488\uff0c\u4e0a\u53f3\u4e0b\u5de6\u3002\u5177\u4f53\u5e94\u7528\u5728margin\u548cpadding\u7684\u4f8b\u5b50\u5982\u4e0b\uff1a<br \/>margin:1em 0 2em 0.5em; <\/p>\n<p>\u8fb9\u6846(border)<br \/>\u8fb9\u6846\u7684\u5c5e\u6027\u5982\u4e0b\uff1a<br \/>border-width:1px; <br \/>border-style:solid; <br \/>border-color:#000; <br \/>\u53ef\u4ee5\u7f29\u5199\u4e3a\u4e00\u53e5\uff1aborder:1px solid #000; <br \/>\u8bed\u6cd5\u662fborder:width style color; <\/p>\n<p>\u80cc\u666f(Backgrounds)<br \/>\u80cc\u666f\u7684\u5c5e\u6027\u5982\u4e0b\uff1a<br \/>background-color:#f00; <br \/>background-image:url(background.gif); <br \/>background-repeat:no-repeat; <br \/>background-attachment:fixed; <br \/>background-position:0 0; <br \/>\u53ef\u4ee5\u7f29\u5199\u4e3a\u4e00\u53e5\uff1abackground:#f00 url(background.gif) no-repeat fixed 0 0; <br \/>\u8bed\u6cd5\u662fbackground:color image repeat attachment position;<br \/> Example Source Code [www.52css.com]<br \/>\u4f60\u53ef\u4ee5\u7701\u7565\u5176\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u5c5e\u6027\u503c\uff0c\u5982\u679c\u7701\u7565\uff0c\u8be5\u5c5e\u6027\u503c\u5c06\u7528\u6d4f\u89c8\u5668\u9ed8\u8ba4\u503c\uff0c\u9ed8\u8ba4\u503c\u4e3a\uff1a<br \/>color: transparent <br \/>image: none <br \/>repeat: repeat <br \/>attachment: scroll <br \/>position: 0% 0% <\/p>\n<p>\u5b57\u4f53(fonts)<br \/>\u5b57\u4f53\u7684\u5c5e\u6027\u5982\u4e0b\uff1a<br \/>font-style:italic; <br \/>font-variant:small-caps; <br \/>font-weight:bold; <br \/>font-size:1em; <br \/>line-height:140%; <br \/>font-family:&#8221;Lucida Grande&#8221;,sans-serif; <br \/>\u53ef\u4ee5\u7f29\u5199\u4e3a\u4e00\u53e5\uff1afont:italic small-caps bold 1em\/140% &#8220;Lucida Grande&#8221;,sans-serif;<br \/>\u6ce8\u610f\uff0c\u5982\u679c\u4f60\u7f29\u5199\u5b57\u4f53\u5b9a\u4e49\uff0c\u81f3\u5c11\u8981\u5b9a\u4e49font-size\u548cfont-family\u4e24\u4e2a\u503c\u3002<\/p>\n<p>\u5217\u8868(lists)<br \/>\u53d6\u6d88\u9ed8\u8ba4\u7684\u5706\u70b9\u548c\u5e8f\u53f7\u53ef\u4ee5\u8fd9\u6837\u5199list-style:none;,<br \/>list\u7684\u5c5e\u6027\u5982\u4e0b:<br \/>list-style-type:square; <br \/>list-style-position:inside; <br \/>list-style-image:url(image.gif); <br \/>\u53ef\u4ee5\u7f29\u5199\u4e3a\u4e00\u53e5\uff1alist-style:square inside url(image.gif); <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u7f29\u5199\u53ef\u4ee5\u5e2e\u52a9\u51cf\u5c11\u4f60CSS\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u66f4\u52a0\u5bb9\u6613\u9605\u8bfb\u3002css\u7f29\u5199\u7684\u4e3b&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-Dream"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=288"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/288\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}