如何解决如何在文本结束后对齐底部页脚元素
这可能是一个非常简单的解决方案,但我现在好几个小时都无法修复或找到它。如何在文本后将透明页脚块粘贴到页面底部。我知道听起来很简单,但看不到它的作用?
任何建议将不胜感激,再次感谢斯图尔特
body {
background-color: #828282;
overflow-x: hidden;
margin: 0px;
}
.footer {
position: absolute;
bottom: 0px;
width: 100%;
height: 180px;
background-color: rgba(0,0.2);
}
.text {
position: absolute;
left: 50%;
transform:translateX(-50%); /* center */
}
<div class="text" style="min-width:400px;max-width:700px;">
<h1>TERMS OF USE FOR ALL USERS</h1>
<br><br>
<b>BY USING OUR WEBSITE YOU AGREE TO THESE TERMS – PLEASE READ THEM CAREFULLY. Introduction: These Terms of Use for all Users govern your use of Venus and your agreement with us. Interpretation: In the Terms of Service:</b>
<br><br>
To reflect changes in laws and regulatory requirements which apply to Venus and the services,features and programs of Venus where such changes require Venus to change its terms and conditions in a manner which does not allow us to give reasonable notice to you; and to address an unforeseen and imminent danger related to defending Venus,Fans or Creators from fraud,malware,spam,data breaches or other cybersecurity risks. We may also make other changes to any part of the Terms of Service,and we will give you reasonable notice of such changes by email or through Venus,and you may contact us to end your agreement with us before the changes take effect. Once any updated Terms of Service are in effect,you will be bound by them if you continue to use Venus.
<br><br>
To reflect changes in laws and regulatory requirements which apply to Venus and the services,you will be bound by them if you continue to use Venus.
</div>
<div class="footer"></div>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。