我在这里看到了很多关于花车的问题,但他们对此无能为力。
图片: http: //img818.imageshack.us/img818/7289/ewd.png
蓝框相对页面居中,红框在蓝色左侧。我需要红色和蓝色框在同一条顶线上(以隐藏绿色)。
这是html:
<article class="post">
<aside class="post-meta">
<img src="img.png">
</aside>
<section class="post-content">
Content of the post.
</section>
</article>
这是scss:
.post {
clear: both;
.post-meta {
position: relative;
float: left;
width: 150px;
left: -150px;
}
.post-content {
float: right;
}
}
感谢帮助!