小编bha*_*win的帖子

Div定位固定时消失

我的HTML就像这样 - ;

<div class="wrapper">
  <div class="header">
    this is the header
    <div class="hdr-lnks">
      <a href="#">home</a>
    </div>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

我的css是这样的:

.hdr-lnks {
    position:fixed;
}
Run Code Online (Sandbox Code Playgroud)

为什么当我设置时position: fixed,div会消失吗?

html css positioning

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×1

html ×1

positioning ×1