Home  >  Article  >  Web Front-end  >  css固定div头部不随滚动条滚动 - haishu

css固定div头部不随滚动条滚动 - haishu

WBOY
WBOYOriginal
2016-05-20 13:46:303584browse

给div加浮动:
position:fixed;
固定宽度,高度,距离头部,左部为0:<br />width: 99%; <br />height: 80px;
top:0; <br />left: 0;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn