我的div完美对齐。我试图在中心div中添加一个图像,但只要我添加图像divs消失,图像不显示。 我遇到了添加图片的问题,请有人帮忙。为什么我的图片没有显示我的代码有什么问题?未在div内显示图像
<style>
.div_parent{
display:inline;
background-image: url('../images/image.jpg') top center no-repeat;"
}
.div_center {
width:300px;
float:left;
border-color:black;
border-style:solid;
border-width:3px;
height :700px
}
.div_right
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
.div_left
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
</style>
<div class="div_parent">
<div class="div_left">
<br /><br /><br /><br /><br /><br />
\t \t \t \t \t \t \t <FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG>Welcome to the Reporting Portal! </STRONG> </font><br />
\t \t \t \t \t \t \t <br />
\t \t \t \t \t \t <FONT size="2" style="font-family:sans-serif; text-align: left;"> \t
\t \t \t \t \t Reports on this site are available as view-only or as an Excel download. </font>
</div>
<div class="div_center">
</div>
<div class="div_right">
<br /><br /><br /><br /><br /><br />
<FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG> We're Here to Help! </STRONG> </font><br /><br />
\t \t \t \t \t \t \t
<FONT size="2" style="font-family:sans-serif; text-align:left;"> \t
We're friendly and available to chat. Reach out to us anytime and we'll happily answer your questions.</br><br />
Supervisors should submit requests including specific fields and search criteria to us at Report Manager</a></font>
</div>
</div>
如何做你想让他们一致?相同的高度?一个div在另一个下方,宽度对于两者来说都很小,并将它们左移? – KujAslani
我想让它们对齐1 ---- 2 ----- 3两边各一个应该像15px一样,中间一个应该是最宽的。 – CrazyCoder