如何保持圆角消失在滚动的div [英] how to keep the rounded corners from disappearing in a scrolled div

查看:147
本文介绍了如何保持圆角消失在滚动的div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅以下内容:

http:/ /jsfiddle.net/8fQjB/23/

我希望hd div始终保持在顶部。和内容div通过页面滚动条可滚动。在如何让网页上的右滚动条只滚动中间窗格。但是,我需要内容div的顶部圆角不会消失,而用户向上滚动。随着div向上移动,这些角也在hd后面向上移动。

I want the hd div to always stay on top. And the content div to be scrollable via the page scrollbar. The answer at how to have the right scrollbar on a web page scroll only the middle pane does that. However I need the top rounded corners of the content div not to disappear while the user scrolls up. As the div moves up, these corners move up also behind the hd. I need the text just to scroll and the corners to stay stationary.

非常感谢!

推荐答案

请查看 jsfiddle.net

理论answer是只是创建一个重叠

Please check this out jsfiddle.net
Theoretical answer is "Just create an overlay"

这篇关于如何保持圆角消失在滚动的div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆