首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >图像没有进入Divider吗?

图像没有进入Divider吗?
EN

Stack Overflow用户
提问于 2013-01-11 07:39:23
回答 1查看 172关注 0票数 0

我在一个网站上工作,我试图在我做的导航分隔栏中放一个导航栏,但是当我把图片放进去时,它没有进入分隔栏,即使它在标签之间。它看起来是这样的:

下面是我的代码:

CSS:

代码语言:javascript
复制
body{background-color:#030303}
#wrapper {width:800px;
margin:0 auto;
}
#header {background-color:yellow;
text-align:center; 
height:50px;
}
#footer{clear:both; 
background-color:yellow ;
text-allign:center;
}
#logo {float:left;
width: 139px;
background-color: black;
text-align: left;
height:70px;}

#navigation {width: 800px;
background-color:#EDEDED;
height:50px;
}
#sidebar {float:left;padding:20px; background-color:green;text-align:right;width:100px;height:460px;}
#content {float:right;width: 620px;
padding:20px; background-color:gray;
text-align:left; height:500px;
border-color:#0017FF;
}

HTML:

代码语言:javascript
复制
<! DOCTYPE html>
<html>
<head> <title>Website</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<div  id="header">
This is my header.
</div>
<div id="logo">
<br/>
<img src="images/SubZer0-logo-and-name.png" width="140" height="50" align="left"></div>
<div  id="navigation">
<img src="images/subzero-banner-new.png" width="750" height="45" align="top">
</div>

<div  id="content">
This is my content box.
</div>
<div  id="sidebar">
This is my sidebar.
</div>
<div  id="footer">
This is my footer.
</div>

</body>
</html>

我该如何解决这个问题?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2013-01-11 08:35:44

算了,我修好了..。原来图像对容器来说太大了..我不明白为什么,因为容器是800x50,图像是750x45,但它现在可以工作了,这才是最重要的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14269283

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档