css - img 向右浮动后移至底部

标签 css

imgfloat:right;

之后移动到底部

请参阅页脚:http://qass.im/thestandard/

此页脚代码:

footer{
display:block;
margin:0 auto;
margin-bottom:50px;
width:800px;
height:100%;
clear:both;
}

.footer-content{
padding:80px;
padding-top:0;
padding-bottom:0;
}

footer p{
line-height: 1.714285714;
font-size:14px;
color:#555;
}

footer p a{
color:#555;
border-bottom:1px dotted #555;
}

.social-icon{
font-size:0;
float:right;
}

最佳答案

按照这种方式进行。

代码更改:

<div class="footer-content">

<div class="social-icon">
<a target="_blank" href="#"><img src="http://qass.im/thestandard/wp-content/themes/thestandard/images/twitter-footer.png"></a>
<a target="_blank" href="#"><img src="http://qass.im/thestandard/wp-content/themes/thestandard/images/facebook-footer.png"></a>
<a target="_blank" href="#"><img src="http://qass.im/thestandard/wp-content/themes/thestandard/images/google-footer.png"></a>
</div>

<p>
Powered by <a target="_blank" href="http://wordpress.org">WordPress</a> ©2013 The Standard, The Standard theme by <a target="_blank" href="http://qass.im/thestandard">Qassim.Dev</a>
</p>

</div>

这将使您的图像不会跳到底部。

关于css - img 向右浮动后移至底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18713890/

相关文章:

html - CSS a 标签没有排列

用于格式化 div 内文本的 CSS 不起作用

css - 在wordpress中下拉类别主菜单

html - 用 css 悬停覆盖 html 内联背景色

html - 如何在平移/悬停边框/框内对齐图像?

html - 使用嵌套 Div 容器的圆 Angular

html - 为什么我的不会是 :hover work and my <a> tag won't go to link on click?

html - 在一个较大的正方形内创建一个正方形的四边形

javascript - 使用 JavaScript 将 CSS 添加到 <head>?

css - 如何使用xhtml在css中使用roboto字体