我的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会消失吗?