{"id":189,"date":"2010-09-30T11:23:21","date_gmt":"2010-09-30T11:23:21","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=189"},"modified":"2010-09-30T11:23:21","modified_gmt":"2010-09-30T11:23:21","slug":"%e5%b1%9e%e6%80%a7%e6%8c%87%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/09\/30\/%e5%b1%9e%e6%80%a7%e6%8c%87%e5%ae%9a\/","title":{"rendered":"\u5c5e\u6027\u6307\u5b9a"},"content":{"rendered":"<p>1, background<br \/>\n?? ???? body<br \/>\n?? ??? ?{<br \/>\n?? ??? ??? ?background: #00ff00 url(&#8216;smiley.gif&#8217;) no-repeat fixed center;?? \/\/\u5f53\u5c06css\u4ece\u6587\u4ef6\u4e2d\u63d0\u53d6\uff0c\u653e\u5165\u4e00.css\u6587\u4ef6\u4e2d\u65f6\uff0c\u56fe\u7247\u8def\u5f84\u6ce8\u610f\u8c03\u6574<br \/>\n?? ??? ?}<\/p>\n<ul>\n<li>background-color:yellow; \u6216\u8005 background-color:#00ff00; \u6216\u8005 background-color:rgb(255,0,255);<\/li>\n<li>background-image:url(&#8216;aaa.gif&#8217;) ? \/\/\u9ed8\u8ba4\uff1a\u6c34\u5e73\uff0c\u5782\u76f4\u91cd\u590d. \u6c34\u5e73background-repeat:repeat-x; ? \u5782\u76f4 background-repeat:repeat-y;? \u4e0d\u91cd\u590dbackground-repeat:no-repeat;<\/li>\n<li>background-attachment:fixed;? \/\/\u6307\u5b9a\u80cc\u666f\u56fe\u7247\u662f\u5426\u56fa\u5b9a\uff0c\u53d6\u503c\u4e3ascroll, fixed. \u5f53\u4e3afixed\u65f6\uff0c\u56fe\u7247\u6c38\u8fdc\u5728\u5f53\u524d\u5c4f\u5e55\u4e2d\u663e\u793a\uff0c\u4e0d\u4f1a\u968f\u6eda\u52a8\u6761\u7684\u6ed1\u52a8\u800c\u53d8\u5316\u3002<\/li>\n<li>background-position:50% 20%;? \u6216\u8005\uff1abackground-position:center;???? \u6216\u8005\uff1abackground-position: 50px 100px;<\/li>\n<li>\u6240\u6709\u653e\u5728\u540c\u4e00\u4e2a\uff1bbackground: #00ff00 url(&#8216;smiley.gif&#8217;) no-repeat fixed center;<\/li>\n<\/ul>\n<p>2\uff0ctext<br \/>\n?? ??? ?h1<br \/>\n?? ??? ?{<br \/>\n?? ??? ??? ?text-align:center;<br \/>\n?? ??? ??? ?text-transform:capitalize;<br \/>\n?? ??? ??? ?color:#800000;<br \/>\n?? ??? ?}<\/p>\n<ul>\n<li>color:blue; color:#00ff00; color:rgb(255,0,0)<\/li>\n<li>text-align:center<\/li>\n<li>text-decoration:none \u53ef\u7528\u6765\u53bb\u6389\u8fde\u63a5\u7684\u4e0b\u5212\u7ebf , \u5176\u503c\u53ef\u53d6\uff1aoverline; line-through; underline; <span style=\"font-size: medium;\">blink;<\/span><\/li>\n<li>text-transform:uppercase :\u6587\u672c\u5168\u90e8\u5927\u5199, \u5c0f\u5199\u4e3a:lowercase\uff1b \u6bcf\u4e2a\u5355\u8bcd\u9996\u5b57\u6bcd\u5927\u5199\u4e3acapitalize;<\/li>\n<li>text-indent:50px;? \u6bb5\u843d\u4e2d\u6307\u5b9a\u9996\u884c\u7f29\u8fdb\u8ddd\u79bb\uff0c\u4e3a\u8d1f\u65f6\u8868\u793a\u4ece\u53f3\u8fb9\u5f00\u59cb\u7f29\u8fdb<\/li>\n<li>letter-spacing:10px; \u6307\u5b9a\u5b57\u6bcd,\u6c49\u5b57\u7684\u95f4\u8ddd<\/li>\n<li>word-spacing:30px;; \u6307\u5b9a\u5355\u8bcd\uff0c\u6c49\u5b57\u7684\u95f4\u8ddd<\/li>\n<li>line-height: 100%; \u5355\u500d\u884c\u8ddd<\/li>\n<li>direction:rtl; \u6587\u672c\u5f00\u59cb\u65b9\u5411\uff0c\u9ed8\u8ba4\u4ece\u5de6\u5f00\u59cb\u3002\u53d6\u503c\u53ef\u4e3altl, rtl<\/li>\n<li>white-space:nowrap\uff1b\u8bbe\u7f6e\u5982\u4f55\u5904\u7406\u5143\u7d20\u5185\u7684\u7a7a\u767d\u3002<br \/>\n<table>\n<tbody>\n<tr>\n<td>normal<\/td>\n<td>\u9ed8\u8ba4\u3002\u7a7a\u767d\u4f1a\u88ab\u6d4f\u89c8\u5668\u5ffd\u7565\u3002<\/td>\n<\/tr>\n<tr>\n<td>pre<\/td>\n<td>\u7a7a\u767d\u4f1a\u88ab\u6d4f\u89c8\u5668\u4fdd\u7559\u3002\u5176\u884c\u4e3a\u65b9\u5f0f\u7c7b\u4f3c HTML \u4e2d\u7684 &lt;pre&gt; \u6807\u7b7e\u3002<\/td>\n<\/tr>\n<tr>\n<td>nowrap<\/td>\n<td>\u6587\u672c\u4e0d\u4f1a\u6362\u884c\uff0c\u6587\u672c\u4f1a\u5728\u5728\u540c\u4e00\u884c\u4e0a\u7ee7\u7eed\uff0c\u76f4\u5230\u9047\u5230 &lt;br&gt; \u6807\u7b7e\u4e3a\u6b62\u3002<\/td>\n<\/tr>\n<tr>\n<td>pre-wrap<\/td>\n<td>\u4fdd\u7559\u7a7a\u767d\u7b26\u5e8f\u5217\uff0c\u4f46\u662f\u6b63\u5e38\u5730\u8fdb\u884c\u6362\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>pre-line<\/td>\n<td>\u5408\u5e76\u7a7a\u767d\u7b26\u5e8f\u5217\uff0c\u4f46\u662f\u4fdd\u7559\u6362\u884c\u7b26\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<p>3\uff0cfont<\/p>\n<ul>\n<li>font-family:&#8221;Times New Roman&#8221;,Georgia,Serif? \u5f53\u7b2c\u4e00\u4e2a\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u65f6\uff0c\u4f1a\u4f9d\u6b21\u5c1d\u8bd5\u540e\u9762\u7684\u5b57\u4f53\u3002<\/li>\n<li>font-style:italic\uff1b\u6307\u5b9a\u5b57\u4f53\u4e3a\u659c\u4f53\uff0cnormal\u4e3a\u6b63\u5e38<\/li>\n<li>font-size:40px;\u6307\u5b9a\u5b57\u4f53\u5927\u5c0f\uff0c\u9ed8\u8ba4\u4e3a16px;<\/li>\n<li>font-weight:bold; \u8bbe\u7f6e\u5b57\u4f53\u7cbe\u7ec6\uff0c\u4e5f\u53ef\u7528font-weight:500; \u5728\u4e3a\u6570\u5b57\u65f6\u8303\u56f4\u4ece100-900, \u5176\u4e2d400\u76f8\u5f53\u4e8enormal, 700\u76f8\u5f53\u4e8ebold<\/li>\n<\/ul>\n<p>4, margin, border, padding, content\uff1a\u6307\u793a\u4e00\u4e2a\u63a7\u4ef6\u7684\u663e\u793a\u4f4d\u7f6e\uff0c\u63a7\u4ef6\u5c31\u662fcontent<\/p>\n<ul>\n<li>margin: \u63a7\u4ef6\u5468\u8fb9\u7684\u7a7a\u767d\uff0c\u5728\u6700\u5916\u90e8<\/li>\n<li>border: \u63a7\u4ef6\u7684\u8fb9\u6846<\/li>\n<li>padding: \u586b\u5145\uff0c \u8fb9\u6846\u4e0e\u63a7\u4ef6\u4e4b\u95f4\u7684\u8ddd\u79bb<\/li>\n<li>content: \u63a7\u4ef6<\/li>\n<li>\u4e00\u4e2a\u5143\u7d20\u7684\u5bbd\u5ea6\u7531\u63a7\u4ef6\u5185\u5bb9content + \u5de6\u53f3padding + \u5de6\u53f3border + \u5de6\u53f3margin \u7ec4\u6210\u3002 \u5f53\u8bbe\u7f6e\u63a7\u4ef6\u7684\u5927\u5c0f\u65f6\uff0c\u5b9e\u9645\u8bbe\u7f6e\u7684\u662fcontent\u7684\u5927\u5c0f\u3002<\/li>\n<li>width:220px;? content\u5bbd\u5ea6<br \/>\npadding:10px;<br \/>\nborder:5px solid gray;<br \/>\nmargin:10px;??????????????????? \u5b9e\u9645\u5bbd\u5ea6\u4e3a\uff1a220 + 10 *2 + 5 *2 + 10*2 = 270px<\/li>\n<li>\u6ce8\uff1a\u5728IE\u4e2dcontent\u5bbd\u5ea6\u5305\u542b\u4e86border, padding\u5373\u5143\u7d20\u7684\u5b9e\u9645\u5bbd\u5ea6= content + \u5de6\u53f3margin \u82e5\u60f3\u5f97\u5230\u4e0a\u9762\u7684\u6548\u679c\uff0c\u8981\u5728\u5934\u90e8\u52a0\u5165\uff1a<\/li>\n<li>&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221;<br \/>\n&#8220;<a href=\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd<\/a>&#8220;&gt;<br \/>\n&lt;html&gt;&#8230;&#8230;&lt;\/html&gt;<\/li>\n<\/ul>\n<p>?<br \/>\n? 5\uff0cborder<\/p>\n<ul>\n<li>border-style:solid, \u5176\u503c\u53ef\u4e3a\uff1asolid \u5b9e\u7ebf\uff1bnone\uff1bdotted \u70b9\u7ebf\uff1b? dashed \u865a\u7ebf\uff1b double \u53cc\u7ebf\uff1b groove ridge inset outset hidden<\/li>\n<li>\u6216\u6bcf\u4e2a\u8fb9\u5b9a\u4e49\uff1aborder-top-style:dotted;<br \/>\nborder-right-style:solid;<br \/>\nborder-bottom-style:dotted;<br \/>\nborder-left-style:solid;<\/li>\n<li>border-width:5px; \u503c\u4e3a\u50cf\u7d20\uff0c\u6216\u8005\uff1a thin, medium, or thick.? border-left-width:15px;<\/li>\n<li>border-color:red; border-right-color:#ff0000;<\/li>\n<\/ul>\n<p>6, margin : \u6ca1\u6709\u80cc\u666f\u8272\uff0c\u5b8c\u5168\u900f\u660e\uff0c\u586b\u5145\u7a7a\u767d<\/p>\n<ul>\n<li>margin-top:100px; margin-top:2cm<br \/>\nmargin-right:50px;????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? margin-bottom:100px; margin-bottom:25%??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? margin-left:50px;<\/li>\n<\/ul>\n<ul>\n<li><span style=\"font-size: x-small;\">margin:25px 50px 75px 100px;? <\/span>\u4e0a\uff0c\u53f3\uff0c\u4e0b\uff0c\u5de6<\/li>\n<li>margin:25px; \u4e0a\uff0c\u53f3\uff0c\u4e0b\uff0c\u5de6 \u90fd\u662f 25px<\/li>\n<\/ul>\n<p>7, padding : \u8fb9\u6846\u4e0e\u63a7\u4ef6\u7684\u8ddd\u79bb<\/p>\n<ul>\n<li>padding-top:25px;<br \/>\npadding-bottom:25px;<br \/>\npadding-right:50px;<br \/>\npadding-left:50px;<\/li>\n<li>padding:25px 50px 75px 100px; \u4e0a\uff0c\u53f3\uff0c\u4e0b\uff0c\u5de6<\/li>\n<\/ul>\n<p>8\uff0clist : \u9879\u76ee\u7b26\u53f7\u5217\u8868<\/p>\n<ul>\n<li>ul.circle {list-style-type:circle}<br \/>\nul.square {list-style-type:square}<\/li>\n<li>ul.inside {list-style-position:inside}<br \/>\nul.outside {list-style-position:outside}<\/li>\n<li>ul<br \/>\n{<br \/>\nlist-style-image:url(&#8216;arrow.gif&#8217;);? \/\/\u4ee5\u56fe\u7247\u4ee3\u8868\u5e8f\u53f7<br \/>\n}<\/li>\n<\/ul>\n<p>9, table<\/p>\n<ul>\n<li>table {border-collapse:collapse} \u8bbe\u7f6eborder\u4e3a\u878d\u5408\uff0c\u9ed8\u8ba4\u4e3a\u5206\u5f00\uff0c\u53cc\u7ebf<\/li>\n<li>table {border-spacing:10px 50px;}<\/li>\n<li>caption {caption-side:bottom} \u8bbe\u7f6etable\u7684caption\u5c5e\u6027\u663e\u793a\u7684\u4f4d\u7f6e<\/li>\n<li>table {empty-cells:hide} \u8bbe\u7f6e\u5f53\u8868\u683c\u4e3a\u7a7a\u65f6\u662f\u5426\u663e\u793a\uff0cIE\u4e0d\u652f\u6301\u3002<\/li>\n<li>table { table-layout:fixed; } \u8868\u683c\u5e03\u5c40\uff0c auto, \u6216 fixed auto:\u968f\u7740\u5185\u5bb9\u5927\u5c0f\u7684\u6539\u53d8\u800c\u6539\u53d8<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1, background ?? ???? body ?? ??? ?{ ?? ??? ??? ?backgr [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-css"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}