如何拉伸 div 以填充页面的剩余空间?
我尝试使用它,但它不起作用。
#home, #menu {
height: 100%;
width: 100%;
}
这是我体内的代码。
Pastebin 链接:http://pastebin.com/WzRVsUG2
<div data-role="page" id="home" >
<div data-role="header" class ="bgimg" >
<h1></h1>
</div>
<div id="menu" data-role="content" data-dom-cache="true" data-theme="c" class ="bgimg1">
<div><h2>Order delicious food now!</h2></div>
<a id= "Pizza" href = "#indexPizza" data-role="button" data-icon="arrow-r" data-iconpos="right"
data-transition="flow" onclick= "">Pizza</a>
<a id="FastFood" href = "#indexFastfood" data-role="button" data-icon="arrow-r" data-iconpos="right"
data-transition="flow" onclick="" >Fast Food</a>
<a id="IndianFood" href = "#indexIndianfood" data-role="button" data-icon="arrow-r" data-iconpos="right"
data-transition="flow" onclick="" >Indian Food</a>
<a id="KoreanFood" href = "#indexKoreanfood" data-role="button" data-icon="arrow-r" data-iconpos="right"
data-transition="flow" onclick="" >Korean Food</a>
<a id="Restaurant" href = "#indexRestaurantfood" data-role="button" data-icon="arrow-r" data-iconpos="right"
data-transition="flow" onclick= "" >Restaurant</a>
</div>
</div>
有任何想法吗?:)