我正在使用AngularJS和Bootstrap的应用程序。我的应用程序的基本结构是这样的:创建图层
home.html的
<body ng-controller="MyController">
<div class="container">
The main content goes here
</div>
<div class="footer">
<div class="container">
<button class="btn btn-info" ng-click="showScreenA()"><span class="glyphicon glyphicon-font"></span></button>
<button class="btn btn-info" ng-click="showScreenB()"><span class="glyphicon glyphicon-bold"></span></button>
</div>
</div>
</body>
home.js
myApp.controller('MyController', [function($scope) {
$scope.showScreenA = function() {
// Display screen A whether screen B is open or if the main content is shown.
// No difference.
};
$scope.showScreenB = function() {
// Display screen B whether screen A is open or if the main content is shown.
// No difference.
};
}]);
理想情况下,我想一个div从动画顶部与屏幕A或屏幕B.该div无法以任何方式覆盖页脚。我想过几个选项。但是,我无法弄清楚这么做的好方法。起初,我想过使用Bootstrap Modal。但是,我无法让它与页脚一起工作。另外,还有比我想要的更多的铬。
有谁知道如何做到这一点?
谢谢!
向我们展示如何试图展示模态。 – 2014-09-06 00:33:27
让我明白:当用户单击页脚中的一个按钮时,相应的内容应该出现在div.container标识的区域中。 – whyceewhite 2014-09-06 01:11:43