如何将 css 的高度设置为 100% 并使其流畅?

How to set the height with css to 100% and make it fluid?

我正在尝试在 bootstrap 中获取诸如容器流体之类的高度。我希望 .button 元素根据网站的高度和宽度自动缩放。想知道我必须如何设置它才能缩放。

http://jsbin.com/sujejimebe/7/edit?html,css,output

我认为它会有所帮助,请阅读 CSS 中有关 vh 属性 的更多信息: http://snook.ca/archives/html_and_css/vm-vh-units