谁能帮写个类似新浪内页的"冻结头部div"的代码?

2025-12-15 16:05:52
推荐回答(3个)
回答1:

css
{
position: fixed;
right: 0;
left: 0;
top: 0;
z-index: 1030;
margin-bottom: 0;
padding-right: 0;
padding-left: 0;
}

回答2:

就是固定定位。position: fixed

回答3:

那个是固定,跟腾讯的一样,前些时间自己写了个