{"id":224,"date":"2019-11-22T05:15:58","date_gmt":"2019-11-21T21:15:58","guid":{"rendered":"https:\/\/jingran.vip\/?p=224"},"modified":"2019-11-22T08:34:24","modified_gmt":"2019-11-22T00:34:24","slug":"%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%ad%a6%e4%b9%a0web%e5%bc%80%e5%8f%91-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%e5%9b%9b%ef%bc%89style%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/jingran.vip\/index.php\/2019\/11\/22\/%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%ad%a6%e4%b9%a0web%e5%bc%80%e5%8f%91-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%e5%9b%9b%ef%bc%89style%e6%a0%87%e7%ad%be\/","title":{"rendered":"\u96f6\u57fa\u7840\u5b66\u4e60Web\u5f00\u53d1 \u2013 \u5b66\u4e60\u7b14\u8bb0\uff08\u56db\uff09style\u6807\u7b7e"},"content":{"rendered":"\n<p>\u5982\u4f55\u5bf9\u9875\u9762\u8fdb\u884c\u7f8e\u5316\u8c03\u6574\uff1f<\/p>\n\n\n\n<p>&lt;style&gt; \u6807\u7b7e\u7528\u4e8e\u4e3a\nHTML \u6587\u6863\u5b9a\u4e49\u6837\u5f0f\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>style \u5143\u7d20\u53ef\u4ee5\u51fa\u73b0\u5728 HTML \u6587\u6863\u4e2d\u7684\u5404\u4e2a\u90e8\u5206\uff0c\u4e00\u4e2a\u6587\u6863\u53ef\u4ee5\u5305\u542b\u591a\u4e2a style \u5143\u7d20\u3002<\/p>\n\n\n\n<p> __________________________________  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;html>\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;title>\u9c7cC-\u96f6\u57fa\u7840\u5165\u95e8\u5b66\u4e60Web\uff08Html5+Css3\uff09&lt;\/title>\n    &lt;style type=\"text\/css\">\n        h1 {color: red}\n        p {color: blue}\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;h1>header 1&lt;\/h1>\n    &lt;p>A paragraph.&lt;\/p>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p> __________________________________  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style>\n    body {\n        background-image: url (\u201c..\/img\/bc.png\u201d)\n    }\n    h1 {\n        text-align: center;\n        color: white;\n    }\n    h2 {\n        margin-left: 60%;\n        color: white;\n    }\n    p {\n\ttext-indent: 32px;\n\tfont-size: 16px;\n        line-height: 32px;\n        color: white;\n    }\n    img{\n\tposition: absolute;\n\tleft: 50%\n\tmargin-left: -181px;\n    }\n&lt;\/style><\/code><\/pre>\n\n\n\n<p> __________________________________  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style media=\u201dprint\u201d>\n    h1 {\n        color: black;\n    }\n    h2 {\n        color: black;\n    }\n    p {\n        background-color: black;\n    }\n&lt;\/style><\/code><\/pre>\n\n\n\n<p> __________________________________  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style media=\u201dscreen and (min-width:512px) and (max-width:1024px)\u201d>\n    body{\n        background-image: url(\u201c..\/img\/bc2.png\u201d)\n    }\n&lt;\/style><\/code><\/pre>\n\n\n\n<p>  __________________________________   <\/p>\n\n\n\n<p>media \u5c5e\u6027\u6307\u5b9a\u6837\u5f0f\u9002\u7528\u7684\u5a92\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;meta charset=\"utf-8\">\n    &lt;title>\u9c7cC-\u96f6\u57fa\u7840\u5165\u95e8\u5b66\u4e60Web\uff08Html5+Css3\uff09&lt;\/title>\n    &lt;style type=\"text\/css\">\n        h1 {color:#FF0000;}\n        p {color:#0000FF;}\n        body {background-color:#FFEFD6;}\n    &lt;\/style>\n\n    &lt;style type=\"text\/css\" media=\"print\">\n        h1 {color:#000000;}\n        p {color:green;}\n        body {background-color:#FFFFFF;}\n    &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n    &lt;h1>style\u6807\u7b7e-media\u5c5e\u6027 \u4f8b\u5b50&lt;\/h1>\n    &lt;p>\u5982\u679c\u6253\u5370\u8fd9\u4e2a\u9875\u9762\uff0c\u6216\u8005\u9884\u89c8\u8fd9\u4e2a\u9875\u9762\uff0c\u4f1a\u770b\u5230 media=\"print\" \u7684\u6837\u5f0f\u3002\u8fd9\u4e2a  \"print\"\u6837\u5f0f\u5305\u542b\u4e86\u7eff\u8272\u6587\u672c\u548c\u767d\u8272\u80cc\u666f\u3002&lt;\/p>\n&lt;\/body>\n&lt;\/html>\n<\/code><\/pre>\n\n\n\n<p> __________________________________  <\/p>\n\n\n\n<p class=\"has-text-align-right\">\u8bfe\u7a0b\u6765\u81ea\u9c7cC\u8bba\u575b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5bf9\u9875\u9762\u8fdb\u884c\u7f8e\u5316\u8c03\u6574\uff1f &lt;style&gt; \u6807\u7b7e\u7528\u4e8e\u4e3a HTML \u6587\u6863\u5b9a\u4e49\u6837\u5f0f\u4fe1\u606f\u3002 st [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11],"tags":[],"_links":{"self":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":2,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":226,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions\/226"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}