{"id":742,"date":"2018-02-25T20:33:18","date_gmt":"2018-02-25T12:33:18","guid":{"rendered":"http:\/\/60.205.208.74\/2018\/02\/25\/ionic-%e5%a4%b4%e9%83%a8%e5%92%8c%e5%ba%95%e9%83%a8\/"},"modified":"2018-02-25T20:33:18","modified_gmt":"2018-02-25T12:33:18","slug":"ionic-%e5%a4%b4%e9%83%a8%e5%92%8c%e5%ba%95%e9%83%a8","status":"publish","type":"post","link":"https:\/\/www.puzi7.net\/?p=742","title":{"rendered":"ionic \u5934\u90e8\u548c\u5e95\u90e8"},"content":{"rendered":"<span itemprop=\"description\"><div class=\"article-body\">\n<div class=\"article-intro\" id=\"content\">\n<h1>ionic \u5934\u90e8\u548c\u5e95\u90e8<\/h1>\n<hr>\n<h2>ion-header-bar<\/h2>\n<p>\u8fd9\u4e2a\u662f\u56fa\u5b9a\u5728\u5c4f\u5e55\u9876\u90e8\u7684\u4e00\u4e2a\u5934\u90e8\u6807\u9898\u680f\u3002\u5982\u679c\u7ed9\u5b83\u52a0\u4e0a&#8217;bar-subheader&#8217; \u8fd9\u4e2a\u6837\u5f0f\uff0c\u5b83\u5c31\u662f\u526f\u6807\u9898\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;ion-header-bar align-title=\"left\" class=\"bar-positive\"&gt;\n  &lt;div class=\"buttons\"&gt;\n    &lt;button class=\"button\" ng-click=\"doSomething()\"&gt;Left Button&lt;\/button&gt;\n  &lt;\/div&gt;\n  &lt;h1 class=\"title\"&gt;Title!&lt;\/h1&gt;\n  &lt;div class=\"buttons\"&gt;\n    &lt;button class=\"button\"&gt;Right Button&lt;\/button&gt;\n  &lt;\/div&gt;\n&lt;\/ion-header-bar&gt;\n&lt;ion-content&gt;\n  Some content!\n&lt;\/ion-content&gt;\n<\/pre>\n<h3>API<\/h3>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        align-title<\/p>\n<div><em>(optional)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>string<\/code>\n      <\/td>\n<td>\n<p>\u8fd9\u4e2a\u662f\u5bf9\u9f50 title \u7684\u3002\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\uff0c\u5b83\u5c06\u4f1a\u6309\u7167\u624b\u673a\u7684\u9ed8\u8ba4\u6392\u7248(Ios\u7684\u9ed8\u8ba4\u662f\u5c45\u4e2d\uff0cAndroid\u9ed8\u8ba4\u662f\u5c45\u5de6)\u3002\u5b83\u7684\u503c\u53ef\u4ee5\u662f &#8216;left&#8217;,&#8217;center&#8217;,&#8217;right&#8217;\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n        no-tap-scroll<\/p>\n<div><em>(optional)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>boolean<\/code>\n      <\/td>\n<td>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5934\u90e8\u6807\u9898\u680f\u5728\u70b9\u51fb\u5c4f\u5e55\u65f6\u5185\u5bb9\u4f1a\u6eda\u52a8\u5230\u5934\u90e8\uff0c\u53ef\u4ee5\u5c06 no-tap-scroll \u8bbe\u7f6e\u4e3a true \u6765\u7981\u6b62\u8be5\u52a8\u4f5c\u3002\u3002\u5b83\u7684\u503c\u662f\u5e03\u5c14\u503c\uff08true\/false\uff09\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>ion-footer-bar<\/h2>\n<p>\u77e5\u9053\u4e86 ion-header-bar \uff0c\u7406\u89e3ion-footer-bar\u5c31\u8f7b\u677e\u591a\u5566\uff01\u53ea\u662f ion-footer-bar \u662f\u5728\u5c4f\u5e55\u7684\u5e95\u90e8\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;ion-content&gt;\n  Some content!\n&lt;\/ion-content&gt;\n&lt;ion-footer-bar align-title=\"left\" class=\"bar-assertive\"&gt;\n  &lt;div class=\"buttons\"&gt;\n    &lt;button class=\"button\"&gt;Left Button&lt;\/button&gt;\n  &lt;\/div&gt;\n  &lt;h1 class=\"title\"&gt;Title!&lt;\/h1&gt;\n  &lt;div class=\"buttons\" ng-click=\"doSomething()\"&gt;\n    &lt;button class=\"button\"&gt;Right Button&lt;\/button&gt;\n  &lt;\/div&gt;\n&lt;\/ion-footer-bar&gt;\n<\/pre>\n<h3>API<\/h3>\n<p>\u4e0e ion-header-bar \u4e0d\u540c\u7684\u662f\uff0cion-footer-bar \u53ea\u6709 align-title \u8fd9\u4e2a API\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        align-title<\/p>\n<div><em>(optional)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>string<\/code>\n      <\/td>\n<td>\n<p>\u8fd9\u4e2a\u662f\u5bf9\u9f50 title \u7684\u3002\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\uff0c\u5b83\u5c06\u4f1a\u6309\u7167\u624b\u673a\u7684\u9ed8\u8ba4\u6392\u7248(Ios\u7684\u9ed8\u8ba4\u662f\u5c45\u4e2d\uff0cAndroid\u9ed8\u8ba4\u662f\u5c45\u5de6)\u3002\u5b83\u7684\u503c\u53ef\u4ee5\u662f &#8216;left&#8217;,&#8217;center&#8217;,&#8217;right&#8217;\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<span>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"><span itemprop=\"description\">ionic \u5934\u90e8\u548c\u5e95\u90e8 ion-header-bar \u8fd9\u4e2a\u662f\u56fa\u5b9a\u5728\u5c4f\u5e55\u9876\u90e8\u7684\u4e00\u4e2a\u5934\u90e8\u6807\u9898\u680f&hellip;<\/span><\/p>\n<p class=\"more-link-p btn-align-right\"><a class=\"green zoom-btn\" href=\"https:\/\/www.puzi7.net\/?p=742\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,26],"tags":[43,72,73,93],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-hybrid","category-mobile","tag-angular","tag-hybrid","tag-ionic","tag-mobile","zoom-theme-has-thumb"],"_links":{"self":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=742"}],"version-history":[{"count":0,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/742\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}