固定顶部导航栏,在样式(css)中加入以下代码
position: fixed;
z-index: 1000;
right: 0;
bottom: 0;
left: 0px;
top: 0px;
width: 100%;
background: #eaeaea
固定底部导航栏,在样式(css)中加入以下代码
position:fixed;
left:0;
bottom:0;
width: 100%;
z-index: 1000;
background: #eaeaea
更多推荐
html固定顶部导航栏和底部导航栏
发布评论