{"id":1549,"date":"2021-01-27T15:06:10","date_gmt":"2021-01-27T07:06:10","guid":{"rendered":"http:\/\/123.57.164.21\/?p=1549"},"modified":"2021-01-30T14:53:51","modified_gmt":"2021-01-30T06:53:51","slug":"%e5%9c%a8vue%e9%a1%b9%e7%9b%ae%e4%b8%ad%e6%b7%bb%e5%8a%a0%e7%89%b9%e6%ae%8a%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=1549","title":{"rendered":"\u5728vue\u9879\u76ee\u4e2d\u6dfb\u52a0\u7279\u6b8a\u5b57\u4f53"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">1.\u8fd9\u91cc\u7684\u7279\u6b8a\u5b57\u4f53\uff0c\u6307\u7684\u662f\u4e00\u822c\u7528\u6237\u7535\u8111\u672a\u5b89\u88c5\u5230\u672c\u5730\u7684\u5b57\u4f53\uff0c\u8981\u5f15\u5165\u8fd9\u6837\u7684\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u628a\u5b57\u4f53\u6587\u4ef6\u4e0b\u8f7d\u4e0b\u6765\u3002<\/h5>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/01\/image-52.png\" alt=\"\" class=\"wp-image-1551\" width=\"493\" height=\"202\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-52.png 758w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-52-300x123.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-52-230x95.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-52-350x144.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-52-480x198.png 480w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">2.\u5c31\u50cf\u4e0a\u56fe\u8fd9\u6837\u7684\uff0cotf\u683c\u5f0f\u7684\uff0c\u7136\u540e\u5728\u9879\u76ee\u91cc\u6dfb\u52a0\u5b83\u3002<\/h5>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/01\/image-53.png\" alt=\"\" class=\"wp-image-1552\" width=\"-30\" height=\"-32\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-53.png 360w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-53-274x300.png 274w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-53-230x252.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/01\/image-53-350x383.png 350w\" sizes=\"(max-width: 360px) 100vw, 360px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">3.\u7136\u540e\u6211\u4eec\u5728font.css\u91cc\u7528@font-face\u89c4\u5219\u5f15\u5165\u8fd9\u4e2a\u5b57\u4f53\u6587\u4ef6\u5e76\u547d\u540d\u5b83\u3002<\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@font-face\n{\nfont-family: KozGoPro-Bold;\nsrc: url('.\/KozGoPro-Bold.otf');\n}\n\n@font-face\n{\nfont-family: KozGoPro-ExtraLight;\nsrc: url('.\/KozGoPro-ExtraLight.otf');\n}\n\n@font-face\n{\nfont-family: KozGoPro-Heavy;\nsrc: url('.\/KozGoPro-Heavy.otf');\n}\n\n@font-face\n{\nfont-family: KozGoPro-Light;\nsrc: url('.\/KozGoPro-Light.otf');\n}\n\n@font-face\n{\nfont-family: KozGoPro-Medium;\nsrc: url('.\/KozGoPro-Medium.otf');\n}\n\n@font-face\n{\nfont-family: KozGoPro-Regular;\nsrc: url('.\/KozGoPro-Regular.otf');\n}<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">4.\u7136\u540e\u5728App.vue\u91cc\u7684style\u5bfc\u5165\u5b83\uff1a<\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;template>\n  &lt;div id=\"app\">\n    &lt;router-view\/>\n  &lt;\/div>\n&lt;\/template>\n\n&lt;script>\nexport default {\n  name: 'App'\n}\n&lt;\/script>\n\n&lt;style>\n@import \"..\/static\/font\/font.css\";\n\n#app {\n  font-family: 'Avenir', Helvetica, Arial, sans-serif;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  text-align: center;\n  color: #2c3e50;\n  margin-top: 60px;\n}\n&lt;\/style>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u8fd9\u91cc\u7684\u7279\u6b8a\u5b57\u4f53\uff0c\u6307\u7684\u662f\u4e00\u822c\u7528\u6237\u7535\u8111\u672a\u5b89\u88c5\u5230\u672c\u5730\u7684\u5b57\u4f53\uff0c\u8981\u5f15\u5165\u8fd9\u6837\u7684\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u628a\u5b57\u4f53\u6587\u4ef6\u4e0b\u8f7d\u4e0b\u6765\u3002 2. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1549"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1549"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1549\/revisions"}],"predecessor-version":[{"id":1553,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1549\/revisions\/1553"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}