我想把两个并排放在另一个上(我有三个) 这是我的代码:
<div class=Mheader >
<div class=theader>
Meine Route !
</div>
<div class=imgcss>
<img src="Images/Route1.png" width=600 height=100 />
</div>
但是图像总是在文本下面。我该如何解决这个问题? 我的 CSS 是:
.Mheader
{
font-family: 'Trebuchet MS';
font-size: larger;
font-weight: bold;
font-style: italic;
text-transform: capitalize;
color: #FFFFFF;
background-color: #008800;
width: auto;
height: 100px;
}
.theader
{
font-family: 'Franklin Gothic Demi';
font-size: xx-large;
font-weight: bold;
font-style: italic;
line-height: normal;
width: 250px;
text-align: left;
height: 100px;
}
.imgcss
{
text-align: right;
width: 600px;
}
最佳答案
你必须在 .theader
和 .imgcss
类中使用 float:left;
关于css - 并排放置两个 <div>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11030895/