如何在包含其他两个 div 的 div 中设置边框 [英] how to have border in a div that contains two other divs
本文介绍了如何在包含其他两个 div 的 div 中设置边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理一个 html 页面,其中我有一个包含两个子 div 的标题 div
I am working on a html page where I have a header div that contains two sub div's
我想为标题 div 设置一个 bottom-border
,但该边框始终位于顶部.我希望边框位于底部.
I want to have a bottom-border
for the header div but that border always keeps going on top. I want the border to be at the bottom.
请查看链接.
推荐答案
Add float:left
in #header 查看演示
Add float:left
in #header See the Demo
这篇关于如何在包含其他两个 div 的 div 中设置边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文