我认为向右浮动会将元素推到最右侧,但事实并非如此。这是我的 HTML:
<footer>
<p class="float-left">©<%: DateTime.Now.Year %></p>
<img class="breathingRoom" src="Images/axXAndSpaceLogo.jpg" alt="Across Time and Space logo" width="128" height="80" />
<a class="breathingRoom" href="http://www.awardwinnersonly.com/humans.txt" target="_blank">
<img src="Images/humanstxt-isolated-orange.gif" alt="Humans dot text logo" width="105" height="46" /></a>
<img class="float-right" src="Images/Logo-BannerSmall_1_.gif" />
</footer>
...这是相关的CSS:
.float-left {
float: left;
}
.float-right {
float: right;
}
.breathingRoom {
margin-left: 4px;
margin-top: 4px;
}
...但最终图像与humans.txt 图像对接,而不是拥抱屏幕的东侧。我需要做些什么才能将它推向正确的阶段?
html5 css 页脚