摘要:
一、水平居中 text-align: center;二、垂直居中1.已知宽高 - 绝对定位position:absolute; width:200px; height:100px;top:50%; left:50%; margin-top:-50px; margin-left:100px;top: 阅读全文
摘要:
<div class="box"> <div class="roll">滚动区域</div> <footer>底部固定菜单</footer> </div> <style> html,body{ margin:0;padding:0;height:100%;width:100%; } footer{ 阅读全文