2016-03-08 100 views
0

我想從屏幕底部開啓啓動模式彈出窗口,如下圖所示。反正有引導模式或有沒有這樣做的插件?我想覆蓋整個寬度。 我的CSS是遵循從全屏幕底部啓動模式彈出窗口

#myModal3 { 
    bottom:50%; 
    overflow: hidden; 
    left: 0%; 
} 
#myModal3 .modal-dialog { 
    width:100%; 
} 

不工作的事情應該是這樣。 enter image description here

回答

0

是這樣的嗎?

func updateSearchResultsForSearchController(searchController: UISearchController) 
 
    { 
 
     filteredTableData.removeAll(keepCapacity: false) 
 
     
 
     let searchPredicate = NSPredicate(format: "SELF CONTAINS[c] %@", searchController.searchBar.text) 
 
     let array = (tableData as NSArray).filteredArrayUsingPredicate(searchPredicate) 
 
     filteredTableData = array as! [String] 
 
     
 
     self.tableView.reloadData() 
 
    }
<div class="modal fade" id="slide-bottom-popup" data-keyboard="false" data-backdrop="false"> 
 
    <div class="modal-body"> 
 
     <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> 
 
     <p>I'm a pop sliding from the bottom that's suppose to stick</p> 
 
     <a href="" class="btn-primary btn-plain btn popup-button">CTA</a> 
 
    </div><!-- /.modal-body --> 
 
</div><!-- /.modal -->

而且,這裏閱讀:Make twitter Bootstrap popup modal slide and stick to bottom of page

+0

謝謝。但是我怎樣才能在背景內容上創建陰影?像什麼引導模式呢? – DrStein