gpt4 book ai didi

html - 为什么我的标题没有固定在列中。

转载 作者:太空宇宙 更新时间:2023-11-03 23:32:41 25 4
gpt4 key购买 nike

为什么我的header 没有fixedcolumn

<div class="container-fluid full-ht">
<div class="row full-ht">
<div class="col-sm-4 full-ht">
<div class="patient-column full-ht">
<div class="fixed-header">
Fixed Header
</div>
Some content follows
</div>
</div>
</div>
</div>

vertical-scrolling 发生时,我希望我的header 固定在column 内。 http://www.bootply.com/tducyvW5u1

最佳答案

你应该使用

位置:固定

固定页眉,实现滚动时固定页眉

CSS

.fixed-header {
position: fixed; // changed position:absolute to fixed
width: 100%;
top: 0;
padding: 15px;
}

关于html - 为什么我的标题没有固定在列中。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24873210/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com