---
title: "div顶部悬浮,不随滚动条滚动"
author: "bingsizi"
date: "2015-12-22T09:51:38Z"
tags: []
categories: ["Web前端"]
slug: "div"
draft: false
lastmod: "2015-12-22T09:51:38Z"
id: 2265645
url: "https://bingsizi.iteye.com/blog/2265645"
---

```
.status{
    background: #4d4d4d none repeat scroll 0 0;
    color: #e6e6e6;
    height: 30px;
    line-height: 30px;
    width: 100%;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0px;
}
```