我正在尝试将加载图像放置在页面的右下角,但除 margin-bottom 外一切正常。
<div id="preload">
<div align="right" style="margin-bottom:40px; margin-right:50px;">
<img src="http://thc-racing.ucoz.com/design/loading.gif" alt="" />
<br>
<a style="color:#00ff24;"><b>Please wait while the page is loading...
<br>If the website doesn't load within one minute please refresh your page!</b>
</a>
</div>
</div>
任何人都可以告诉我什么或如何让它工作吗? 谢谢
最佳答案
这是边距与填充的本质。由于边距位于元素之外,除非后面有另一个元素,否则它们不会呈现。您可以在父级上使用 1px 的底部填充;这应该会触发渲染。
关于html - margin 底部不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18342817/