2014-05-09 38 views

回答

6

這是爲我工作的。

.ui-grid { 
    position: absolute; 
    height: auto; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
} 

有人在this thread,由@ dcryan22聯繫,提及這個答案的部分版本。我認爲在答案中包含來自解決方案的實際完整代碼會很有幫助。

請注意,這些屬性設置在元素.ui-grid上,而不僅僅是指令本身。

3

This article給出了使用CSS視口的答案。適合我!

我已將此添加CSS:

.ui-grid { 
    height: 98vh; 
} 

我使用Twitter的引導爲好,但即使並不需要任何額外的div或容器。