{"id":260105,"date":"2023-01-08T09:19:37","date_gmt":"2023-01-08T01:19:37","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=260105"},"modified":"2022-12-24T12:20:11","modified_gmt":"2022-12-24T04:20:11","slug":"learn-about-foundation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/learn-about-foundation.html","title":{"rendered":"\u4e86\u89e3\u4e0bFoundation Joyride"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nFoundation \u7528\u4e8e\u5f00\u53d1\u54cd\u5e94\u5f0f\u7684 HTML, CSS and JavaScript \u6846\u67b6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

oyride \u662f\u4e00\u4e2a\u529f\u80fd\u5411\u5bfc\u7684 JavaScript \u6548\u679c\uff0c\u521b\u5efa\u5b9e\u4f8b\u5982\u4e0b\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<h3 id=\"first\">First stop!<\/h3>\r\n<h3 id=\"second\">Second stop!<\/h3>\r\n\r\n<!-- The joyride: must be placed at the bottom of your page, but inside <body> -->\r\n<ol class=\"joyride-list\" data-joyride>\r\n  <li data-id=\"first\">\r\n    <p>First stop. The ride has begun!<\/p>\r\n  <\/li>\r\n  <li data-id=\"second\">\r\n    <h4>Second Stop<\/h4>\r\n    <p>Any valid HTML will work inside the Joyride.<\/p>\r\n  <\/li>\r\n  <li data-button=\"End\">\r\n    <h4>End Stop<\/h4>\r\n    <p>The tour is over. You can either go back to the previous stop or close it.<\/p>\r\n  <\/li>\r\n<\/ol>\r\n\r\n<!-- Start Joyride Upon Initialization -->\r\n<script>\r\n$(document).ready(function() {\r\n    $(document).foundation('joyride', 'start');\r\n})\r\n<\/script><\/pre>\n
\u5b9e\u4f8b\u89e3\u6790<\/strong><\/div>\n

\u4ee5\u4e0a\u5b9e\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e24\u4e2a\u5143\u7d20\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u6709\u72ec\u7acb\u7684 ID\u3002 \u4e24\u4e2a\u5143\u7d20\u8bbe\u7f6e\u4e86 joyride \u5f00\u59cb\u548c\u7ed3\u675f\u7684\u4f4d\u7f6e\u3002<\/p>\n

\u6211\u4eec\u5728 <ol> \u6216 <ul> \u5143\u7d20\u4e0a\u6dfb\u52a0 data-joyride \u5c5e\u6027\u548c .joyride-list \u7c7b\u6765\u521b\u5efa joyride\u3002\u4f60\u9700\u8981\u5728\u6587\u6863\u5934\u90e8\u5b9a\u4e49\u5b83 (\u5728 <body> \u5185\u7684\u5934\u90e8)\u3002\u5728\u6bcf\u4e2a\u5217\u8868\u4e0a\u4f7f\u7528 <li> \u5143\u7d20\uff0c\u6bcf\u4e2a\u5143\u7d20\u6dfb\u52a0 data-id=\"value\" \u5c5e\u6027\u3002\u5c5e\u6027\u7684 value \u5fc5\u987b\u4e0e\u4e4b\u524d\u5143\u7d20\u7684 id \u76f8\u540c\u3002\u6240\u4ee5\u7b2c\u4e00\u4e2a\u529f\u80fd\u5bfc\u822a <h3> \u5143\u7d20\u4f7f\u7528 id=\"first\" \u5fc5\u987b\u4e0e <li> \u5143\u7d20\u7684 data-id=\"first\" \u503c\u4e00\u81f4\u3002<\/p>\n

\u5982\u679c\u4f60\u6ca1\u6709\u7ba1\u7406\u505c\u6b62\u7684 id\uff0c\u5c06\u663e\u793a\u4e00\u4e2a\u6a21\u6001\u6846\u3002<\/p>\n

\u6700\u540e\uff0cJoyride \u9700\u8981\u4f7f\u7528 JavaScript \u521d\u59cb\u5316\u5b83\uff0c\u4ee3\u7801\u4e3a\uff1a $(document).foundation('joyride', 'start');<\/p>\n","protected":false},"excerpt":{"rendered":"

oyride \u662f\u4e00\u4e2a\u529f\u80fd\u5411\u5bfc\u7684 JavaScript \u6548\u679c\uff0c\u521b\u5efa\u5b9e\u4f8b\u5982\u4e0b\uff1a \u5b9e\u4f8b <h3 id=”fir […]<\/p>\n","protected":false},"author":321,"featured_media":260109,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-260105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=260105"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260105\/revisions"}],"predecessor-version":[{"id":260111,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260105\/revisions\/260111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/260109"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=260105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=260105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=260105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}