📜  css div 越过顶部菜单 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:52.033000             🧑  作者: Mango

代码示例1
#navbar {
  background-color:#990000;
  position:fixed;  
  z-index:1; /*Add this*/
  width:100%;
  height:50px;
  text-align:center;
  vertical-align:middle;
  line-height:50px;
  top:0px;
}