我想将breadcrumb div加入到标题和左侧栏div中,附上image。关闭div与CSS之间的差距
而且我想让内容div覆盖整个页面 - 目前它只覆盖内容div的3/4。 (我不能previous answers或谷歌搜索实现这个...)
HTML代码:
<div> <!-- container -->
<div id="header">
<h1 align="center">Dashboard</h1>
</div>
<div id="nav">
Networks<br>
Data Management<br>
Assets<br>
</div>
<div id="section">
<div id="content-header">
<h6 align="left">Breadcrumb</h6>
</div>
<h2>London</h2>
<p>
London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.
</p>
<p>
Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.
</p>
</div>
</div> <!-- /container -->
CSS代码:
#header {
background-color:#fecb00;
color:white;
text-align:center;
padding:5px;
}
#nav {
line-height:30px;
background-color:#002244;
color:white;
height:819px;
width:200px;
float:left;
padding:5px;
}
#section {
min-height: 100%;
width: auto;
float:left;
padding:10px;
}
#content-header {
background-color:#747678;
color:white;
text-align:center;
padding:5px;
}
您不能在StackOverflow上两次提出相同的问题。另一方面,请在JSFiddle或StackOverflow代码片段中记下您的CSS/HTML/JS代码。 – 2014-10-16 14:12:50
谢谢@ WissamEl-Kik,将从下次把代码放入JSFiddle – 2014-10-16 14:15:34