{"id":314,"date":"2014-11-05T14:11:26","date_gmt":"2014-11-05T06:11:26","guid":{"rendered":"https:\/\/aweidesign.why3s.tw\/wp2\/?p=314"},"modified":"2019-09-17T17:15:59","modified_gmt":"2019-09-17T09:15:59","slug":"awei%e7%a0%94%e7%a9%b6%e5%ae%a4%e6%b7%a1%e5%85%a5%e6%b7%a1%e5%87%ba%e6%b5%ae%e5%8b%95%e5%bc%8f%e7%9a%84%e5%9b%9e%e5%88%b0%e7%b6%b2%e9%a0%81%e9%a0%82%e9%83%a8%e6%8c%89%e9%88%95","status":"publish","type":"post","link":"https:\/\/aweidesign.why3s.tw\/wp2\/314\/awei%e7%a0%94%e7%a9%b6%e5%ae%a4%e6%b7%a1%e5%85%a5%e6%b7%a1%e5%87%ba%e6%b5%ae%e5%8b%95%e5%bc%8f%e7%9a%84%e5%9b%9e%e5%88%b0%e7%b6%b2%e9%a0%81%e9%a0%82%e9%83%a8%e6%8c%89%e9%88%95","title":{"rendered":"[awei\u7814\u7a76\u5ba4]\u6de1\u5165\u6de1\u51fa\u6d6e\u52d5\u5f0f\u7684\u56de\u5230\u7db2\u9801\u9802\u90e8\u6309\u9215"},"content":{"rendered":"<p>\u5982\u679c\u7db2\u9801\u5f88\u9577,\u53c8\u60f3\u8981\u5feb\u901f\u7684\u56de\u5230\u9802\u90e8.\u70ba\u4e86\u4e0d\u8981\u9020\u6210\u700f\u89bd\u8005\u7684\u4e0d\u4fbf<br \/>\n\u901a\u5e38\u6703\u8a2d\u8a08\u4e00\u500b\u6703\u5230\u9802\u90e8\u7684\u6309\u9215<\/p>\n<p><a href=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/toptitle_01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-325\" src=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/toptitle_01.jpg\" alt=\"toptitle_01\" width=\"680\" height=\"515\" srcset=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/toptitle_01.jpg 680w, https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/toptitle_01-300x227.jpg 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>\u9019\u9ebc\u505a\uff0c\u4e00\u4f86\u53ef\u4ee5\u8b93\u4f7f\u7528\u8005\u56de\u5230\u9802\u90e8\u53bb\u700f\u89bd\u5176\u4ed6\u7684\u5206\u9801\uff0c\u7576\u7db2\u9801\u8f03\u9577\u6642\uff0c\u8981\u56de\u5230\u7db2\u9801\u7684\u4e0a\u534a\u90e8\u4e5f\u6bd4\u8f03\u5bb9\u6613\uff0c\u4e0d\u7136\u5e38\u5e38\u6efe\u8f2a\u6703\u6efe\u5230\u760b\u6389\u5427\u3002<br \/>\n\u9019\u500b\u8a2d\u8a08\u662f\u53ea\u8981\u6ed1\u5230\u6700\u5e95\u5c64\u6216\u662f\u4e2d\u9593\u5c31\u53ef\u4ee5\u9ede\u53f3\u4e0b\u89d2\u5411\u4e0a\u7bad\u982d,\u5c31\u53ef\u4ee5\u5feb\u901f\u7684\u5f80\u9802\u90e8\u53bb.<br \/>\n\u4e3b\u8981\u7528\u5230\u7684 HTML+CSS+jQuery<\/p>\n<h3>1.\u9996\u5148HTML\u90e8\u5206\u8acb\u52a0\u5728&lt;body&gt;\u5167(wordpress\u5247\u52a0\u5728index.php\u8207single.php<\/h3>\n<h2>)<\/h2>\n<pre>&lt;div id=\"gotop\"&gt;\u02c4&lt;\/div&gt;\n\n<\/pre>\n<h3>2.CSS\u90e8\u5206\u8acb\u52a0\u5728\u60a8\u7684css\u6a94\u88e1(wordpress\u5247\u52a0\u5728style.css)<\/h3>\n<pre>#gotop {\n    display: none;\n    position: fixed;\n    right: 20px;\n    bottom: 20px;    \n    padding: 10px 15px;    \n    font-size: 20px;\n    background: #777;\n    color: white;\n    cursor: pointer;\n}\n\n<\/pre>\n<h3>3.jQuery\u90e8\u5206\u8acb\u52a0\u5728\u60a8\u7684css\u6a94\u88e1(wordpress\u5247\u52a0\u5728index.php\u8207single.php)<\/h3>\n<pre>&lt;!-- Start \u5f80\u9802\u90e8\u7bad\u982d Jquery\u78bc\/\/--&gt;\n&lt;script type=\"text\/javascript\" src=\"http:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/1.9.0\/jquery.min.js\"&gt;&lt;\/script&gt;\n&lt;script type=\"text\/javascript\"&gt;\n$(function(){\n$(\"#gotop\").click(function(){\njQuery(\"html,body\").animate({\nscrollTop:0\n},1000);\n});\n$(window).scroll(function() {\nif ( $(this).scrollTop() &gt; 300){\n$('#gotop').fadeIn(\"fast\");\n} else {\n$('#gotop').stop().fadeOut(\"fast\");\n}\n});\n});\n&lt;\/script&gt;\n\n<\/pre>\n<hr \/>\n<h2><span style=\"color: #ff0000;\">CSS\u5fae\u8abf<\/span><\/h2>\n<p>\u5982\u679c\u4f60\u60f3\u8981\u8abf\u6574\u7bad\u982d\u6539\u6210\u5716\u7247.\u53ef\u4ee5\u5230CSS\u88e1<\/p>\n<pre>background: #777;<\/pre>\n<p>\u6539\u6210<\/p>\n<pre>background-image:url(\u4f60\u7684\u5716\u7247.jpg);\nbackground-repeat: no-repeat;<\/pre>\n<p>\u5176\u4ed6\u5982\u679c\u60f3\u8981\u8abf\u6210\u5713\u89d2\u80cc\u666f\u5247\u662f\u53c3\u8003\u4e00\u822cCSS\u6309\u9215\u8a2d\u5b9a\u5373\u53ef<\/p>\n<pre>border-radius: 50%;<\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff0000;\">\u7bad\u982d\u5716\u7247\u4e0b\u8f09<\/span><\/h2>\n<p><a href=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-320\" src=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531-300x159.jpg\" alt=\"20140518223622531\" width=\"300\" height=\"159\" srcset=\"https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531-300x159.jpg 300w, https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531-1024x543.jpg 1024w, https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531-900x477.jpg 900w, https:\/\/aweidesign.why3s.tw\/wp2\/wp-content\/uploads\/2014\/11\/20140518223622531.jpg 1463w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u7db2\u9801\u5f88\u9577,\u53c8\u60f3\u8981\u5feb\u901f\u7684\u56de\u5230\u9802\u90e8.\u70ba\u4e86\u4e0d\u8981\u9020\u6210\u700f\u89bd\u8005\u7684\u4e0d\u4fbf \u901a\u5e38\u6703\u8a2d\u8a08\u4e00\u500b\u6703\u5230\u9802\u90e8\u7684\u6309\u9215 \u9019\u9ebc\u505a\uff0c\u4e00\u4f86\u53ef\u4ee5\u8b93 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,108],"tags":[59,58],"class_list":["post-314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-classroom","category-jquery_css-tech","tag-css-jquery","tag-58"],"_links":{"self":[{"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/comments?post=314"}],"version-history":[{"count":8,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":1693,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/posts\/314\/revisions\/1693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/media\/321"}],"wp:attachment":[{"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/media?parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/categories?post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aweidesign.why3s.tw\/wp2\/wp-json\/wp\/v2\/tags?post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}