使div高度为100%
我知道已经有很多关于这个的问题了,我环顾四周,似乎每个人都说让 div 绝对定位,这并不是我真正想做的。
这是一个 jsbin 最小模型,它演示了我想要实现的目标。
我想要的是让灰色 div 沿着黄色 div 延伸分区
有谁知道如何解决这个问题?
I know there are quite a few questions on this already and i've looked around and everyone seems to say make the div absolutely positioned which is not really what i want to do.
Here's a jsbin minimal mockup which demonstrates what I'm trying to achieve.
What i want is so that the grey div stretches along side the yellow div.
Does anyone know how one would go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谷歌搜索“css 等高列”。那里有很多方法。我用过这个(3列): http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks
Google around for "css equal height columns". Plenty of methods out there. I've used this one (for 3 columns) a fair bit: http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks