边界底部显示div的顶部 [英] border-bottom showing on top of div
本文介绍了边界底部显示div的顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设置了一个边框底部,但显示在顶部,因为我无法解决问题。
我在这里设置了一个jsfiddle:
您用 overflow:hidden (
overflow: auto
也可以)。
I have set a border-bottom but its showing on top for a reason i cant work out.
I have set up a jsfiddle here:
解决方案
overflow: hidden
on the header - see
http://jsfiddle.net/thebabydino/nnEr9/1/
The problem is that you've floated the children of your header. Therefore, your header has height zero, as you can see below
You fix it with overflow: hidden
(overflow: auto
also works).
这篇关于边界底部显示div的顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文