我正在使用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