javascript - Disable scroll bar in header but not in content for a web page -


I have a simple web page with headers and content, it may seem

  & Lt; Div id = "Wrap" & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; / Div & gt; By default, it has a scroll bar to its right, but I want to disable / freeze the scroll bar in the header, but keep it in content, is it possible by javascript Is Jquery or CSS?  

thanks

ago enter image details here

after enter image details here

You can get it by setting the content at a certain height and by setting the overflow-y: scroll . P> Example:

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -