I want a div to be below its sibling, if the browser window is big enough or to be at the bottom. The div1 doesn't have a static height of course.
如果浏览器窗口足够大或者位于底部,我希望div低于其兄弟。 div1当然没有静态高度。
This image is how I want to position div2 if the browser window is big
如果浏览器窗口很大,这个图像就是我想要定位div2的方式
The following is how I want div2 to be positioned if the browser window is small.
如果浏览器窗口很小,以下是我希望div2定位的方法。
1 个解决方案
#1
3
You're describing a "sticky footer".
你在描述一个“粘性页脚”。
- http://ryanfait.com/sticky-footer/
- http://ryanfait.com/sticky-footer/
- http://www.cssstickyfooter.com/
- http://www.cssstickyfooter.com/
#1
3
You're describing a "sticky footer".
你在描述一个“粘性页脚”。
- http://ryanfait.com/sticky-footer/
- http://ryanfait.com/sticky-footer/
- http://www.cssstickyfooter.com/
- http://www.cssstickyfooter.com/