{"id":397,"date":"2022-09-23T22:46:00","date_gmt":"2022-09-23T14:46:00","guid":{"rendered":"https:\/\/annion.kingbig.idv.tw\/tool-app\/?p=397"},"modified":"2026-08-11T09:03:28","modified_gmt":"2026-08-11T01:03:28","slug":"%e7%8b%97%e7%8b%97%e5%b9%b4%e9%bd%a1%e8%a8%88%e7%ae%97","status":"publish","type":"post","link":"https:\/\/annion.kingbig.idv.tw\/tool-app\/?p=397","title":{"rendered":"\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97"},"content":{"rendered":"<p>\u4eba\u548c\u5bf5\u7269\u96a8\u8457\u6642\u4ee3\u6f14\u9032\u66f4\u70ba\u89aa\u8fd1\uff0c\u6bdb\u5c0f\u5b69\u7684\u751f\u6d3b\u74b0\u5883\u8d8a\u4f86\u8d8a\u597d\uff0c\u4e5f\u8b93\u72d7\u72d7\u58fd\u547d\u6709\u8b8a\u9577\u7684\u8da8\u52e2\u3002\u4f60\u77e5\u9053\u72d7\u72d7\u5e74\u9f61\u600e\u9ebc\u7b97\u55ce\uff1f\u63db\u7b97\u6210\u4eba\u985e\u5927\u7d04\u5e7e\u6b72\uff1f\u9019\u4e00\u500b\u72d7\u72d7\u5e74\u9f61\u63db\u7b97\u5668\u662f\u4e00\u500b\u7c21\u55ae\u7684\u8a08\u7b97\u6a5f\uff0c\u9ede\u9078\u5e74\u9f61\u3001\u6027\u5225\u548c\u9ad4\u578b\u5927\u5c0f\u5c31\u53ef\u4ee5\u63db\u7b97\u51fa\u5927\u7d04\u662f\u4eba\u985e\u7684\u5e74\u9f61\u3002<!--more--><\/p>\n<h2>\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97<\/h2>\n<p><!-- \u72d7\u72d7\u5e74\u9f61\u8a08\u7b97\u6a5f\uff1aWordPress \u81ea\u8a02 HTML \u5340\u584a --><\/p>\n<div style=\"width:100%;max-width:none;margin:20px 0;\">\n  <iframe\n    id=\"dogAgeCalculatorFrame\"\n    src=\"https:\/\/annion.kingbig.idv.tw\/tools\/page\/tool-dog-age.html\"\n    title=\"\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97\u6a5f\"\n    width=\"100%\"\n    height=\"900\"\n    scrolling=\"no\"\n    loading=\"eager\"\n    style=\"display:block;width:100%!important;max-width:none!important;min-width:100%!important;height:900px;border:0;overflow:hidden;box-sizing:border-box;\"\n  ><\/iframe>\n<\/div>\n<p><script>\n(() => {\n  const frame = document.getElementById(\"dogAgeCalculatorFrame\");\n  if (!frame) return;<\/p>\n<p>  function setHeight(height) {\n    const h = Math.max(320, Math.ceil(Number(height) || 0));\n    if (!h) return;\n    frame.style.setProperty(\"height\", h + \"px\", \"important\");\n    frame.setAttribute(\"height\", String(h));\n  }<\/p>\n<p>  window.addEventListener(\"message\", (event) => {\n    const data = event.data || {};\n    if (data.type !== \"dog-age-calculator-height\") return;\n    setHeight(data.height);\n  });<\/p>\n<p>  \/\/ \u540c\u7db2\u57df\u6642\u984d\u5916\u76f4\u63a5\u8b80\u53d6\u5167\u5bb9\u9ad8\u5ea6\uff0c\u907f\u514d WordPress \u904e\u6ffe\u5916\u5c64 script \u6216\u6f0f\u6389\u8a0a\u606f\u3002\n  function syncSameOriginHeight() {\n    try {\n      const doc = frame.contentDocument || frame.contentWindow.document;\n      const shell = doc.querySelector(\".wp-iframe-shell\");\n      if (!shell) return;\n      const rect = shell.getBoundingClientRect();\n      const styles = frame.contentWindow.getComputedStyle(shell);\n      const mt = parseFloat(styles.marginTop) || 0;\n      const mb = parseFloat(styles.marginBottom) || 0;\n      setHeight(rect.height + mt + mb + 8);\n    } catch (e) {}\n  }<\/p>\n<p>  frame.addEventListener(\"load\", () => {\n    [0,100,250,500,1000,1800].forEach(delay => {\n      setTimeout(syncSameOriginHeight, delay);\n    });\n  });<\/p>\n<p>  setInterval(syncSameOriginHeight, 500);\n})();\n<\/script><br \/>\n\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97\u662f\u4e86\u89e3\u60a8\u7684\u5bf5\u7269\u5728\u4eba\u985e\u5e74\u9f61\u4e2d\u7684\u5e74\u9f61\u7b49\u6548\u7684\u4e00\u7a2e\u65b9\u6cd5\u3002\u7531\u65bc\u72d7\u72d7\u548c\u4eba\u985e\u7684\u751f\u7406\u6642\u9418\u4e0d\u540c\uff0c\u6240\u4ee5\u55ae\u7d14\u5730\u5c07\u72d7\u72d7\u7684\u5e74\u9f61\u4e58\u4ee57\u4e26\u4e0d\u662f\u4e00\u500b\u7cbe\u78ba\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u66f4\u6e96\u78ba\u7684\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97\u65b9\u6cd5\uff1a<br \/>\n\u5c0f\u72d7\u671f\uff08\u51fa\u751f\u81f32\u6b72\uff09\uff1a\u5c0f\u72d7\u7684\u6210\u9577\u901f\u5ea6\u5f88\u5feb\uff0c\u56e0\u6b64\u524d\u5169\u5e74\u7684\u6210\u9577\u53ef\u4ee5\u76f8\u7576\u65bc\u4eba\u985e\u768410\u523024\u6b72\u3002\u901a\u5e38\uff0c\u7b2c\u4e00\u5e74\u7684\u72d7\u72d7\u5e74\u9f61\u76f8\u7576\u65bc\u4eba\u985e7\u6b72\uff0c\u7b2c\u4e8c\u5e74\u76f8\u7576\u65bc\u4eba\u985e24\u6b72\u3002<\/p>\n<p>\u6210\u719f\u671f\uff083\u81f36\u6b72\uff09\uff1a\u5f9e\u7b2c\u4e09\u5e74\u958b\u59cb\uff0c\u5927\u578b\u72ac\u7684\u5e74\u9f61\u589e\u9577\u901f\u5ea6\u6703\u653e\u6162\uff0c\u5c0f\u578b\u72ac\u7684\u5247\u76f8\u5c0d\u8f03\u5feb\u3002\u4e00\u822c\u4f86\u8aaa\uff0c\u6bcf\u589e\u52a0\u4e00\u5e74\u76f8\u7576\u65bc\u4eba\u985e5\u6b72\u3002<\/p>\n<p>\u8001\u5e74\u671f\uff087\u6b72\u4ee5\u4e0a\uff09\uff1a\u96a8\u8457\u5e74\u9f61\u589e\u9577\uff0c\u72d7\u72d7\u7684\u5e74\u9f61\u8207\u4eba\u985e\u7684\u5e74\u9f61\u95dc\u4fc2\u8b8a\u5f97\u66f4\u52a0\u8907\u96dc\u3002\u5927\u578b\u72ac\u548c\u5c0f\u578b\u72ac\u7684\u5e74\u9f61\u8f49\u63db\u65b9\u5f0f\u4e0d\u540c\uff0c\u901a\u5e38\u4f9d\u64da\u5927\u5c0f\u548c\u54c1\u7a2e\u9032\u884c\u8abf\u6574\u3002<\/p>\n<p>\u8acb\u6ce8\u610f\uff0c\u9019\u7a2e\u72d7\u72d7\u5e74\u9f61\u8a08\u7b97\u65b9\u6cd5\u50c5\u70ba\u4e00\u7a2e\u8fd1\u4f3c\u503c\uff0c\u4e0d\u540c\u7684\u54c1\u7a2e\u548c\u500b\u9ad4\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u751f\u9577\u901f\u5ea6\u548c\u58fd\u547d\u3002\u78ba\u4fdd\u60a8\u7d93\u5e38\u5e36\u60a8\u7684\u72d7\u72d7\u53bb\u91ab\u751f\u90a3\u88e1\u9032\u884c\u5065\u5eb7\u6aa2\u67e5\uff0c\u4e26\u7d66\u4e88\u9069\u7576\u7684\u7167\u8b77\u548c\u98f2\u98df\uff0c\u4ee5\u78ba\u4fdd\u5b83\u80fd\u5920\u5065\u5eb7\u5feb\u6a02\u5730\u6210\u9577\u548c\u8001\u53bb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eba\u548c\u5bf5\u7269\u96a8\u8457\u6642\u4ee3\u6f14\u9032\u66f4\u70ba\u89aa\u8fd1\uff0c\u6bdb\u5c0f\u5b69\u7684\u751f\u6d3b\u74b0\u5883\u8d8a\u4f86\u8d8a\u597d\uff0c\u4e5f\u8b93\u72d7\u72d7\u58fd\u547d\u6709\u8b8a\u9577\u7684\u8da8\u52e2\u3002\u4f60\u77e5\u9053\u72d7\u72d7\u5e74\u9f61\u600e\u9ebc &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[22,32],"_links":{"self":[{"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/posts\/397"}],"collection":[{"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":6,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":2222,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions\/2222"}],"wp:attachment":[{"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/annion.kingbig.idv.tw\/tool-app\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}