ionic之副标题bar-subheader
发布时间:2020-12-17 09:51:23 所属栏目:安全 来源:网络整理
导读:1、实例背景 ionic的标题是bar-header,副标题是bar-subheader 2、实现源码 !DOCTYPE htmlhtmlheadmeta charset="UTF-8"meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" /titleionic之副标题bar-subheader/titlelink
1、实例背景 ionic的标题是bar-header,副标题是bar-subheader 2、实现源码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <title>ionic之副标题bar-subheader</title> <link rel="stylesheet" href="../css/ionic.css" /> <script type="text/javascript" src="../js/ionic.bundle.js" ></script> <script> var app = angular.module("subheaderApp",["ionic"]); app.controller("subheaderController",function($scope){ $scope.header = "标题"; $scope.subheader = "副标题"; }); </script> </head> <body ng-app="subheaderApp" ng-controller="subheaderController"> <div class="bar bar-header bar-assertive"> <label class="title">{{header}}</label> </div> <div class="bar bar-subheader bar-balanced"> <label class="title">{{subheader}}</label> </div> </body> </html> 3、实现结果
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |