Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是小提琴:http: //jsfiddle.net/j9Gmx/
我怎样才能得到最小高度:100%;去工作?
它正在工作,但由于 div 的父级(主体)没有高度,100% 基本上是零像素。将body的高度设置为100%,你会得到你想要的效果。
演示:http: //jsfiddle.net/j9Gmx/2/