好吧,所以我看了一堆其他类似这样的堆栈溢出问题,但似乎没有任何效果。我不知道为什么它不工作一定是我没有抓住的愚蠢的东西。
我的 CSS
.how-right {
}
.how-right img {
float:right;
margin-left:20px;
vertical-align:middle;
}
.how-left {
}
我的 HTML
<!-- Number 1 -->
<div style="height:259px;" class="how-right">
<img src="img/how-it-works/num-1.PNG" width="267px" height="259px">
<span> has a simple system to get you in shape in just 6 weeks. And it's so easy to follow, even people who have never exercised before can do it.</span>
</div>