[英]HTML - aligning image on the footer
尝试将图像与页面底部对齐时遇到麻烦。 我正在编辑我的worpdress php文件:用于HTML的footer.php和用于CSS的stylesheet.css。 当我更改底部居民或包装纸的高度时,它不会更改图像的位置。 如何更改html / css,使其位于页面底部的某个位置?
的HTML
<div id="wrapper">
<div id="bottomDweller">
<img src="http://anbhialann.ie/wp-content/uploads/2014/01/Menu-Pages-Badge.png" alt="Bottom of the page" width="42" height="42"></div>
</div>
的CSS
#wrapper {height: 500px; position:relative;}
#bottomDweller {position: absolute; bottom:20px;}
像这样
remove
#bottomDweller
下面的bottom:20px
;
的CSS
#bottomDweller {
position: absolute;
bottom: 0;
background-color:red;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.