The first method: pure CSS

HTML {overflow: hidden; }
body {height: 100%; Overflow: auto; }
#rightform form {position: absolute; Right: 30px; Top50px; }

this method has a bug unresolved: under IE6 will put all the position: absolute all become "float" element; Object occurs and js method is used to scroll the scroll bar, the following method is a combination of CSS and js, solves the above problem.

<! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<HTML XMLNS="http://www.w3.org/1999/xhtml" >
<Head>
<Meta HTTP - equiv="content-type" Content="text/HTML; charset=gb2312"/>
<Title> IE6 fixed
<Style type="text/CSS" >*

{
margin: 0px;
the padding: 0px;

} body {
_background - image: url (about: blank);/* as a background with a blank browser page */
_background - attachment: fixed;/* hasting screen flash in IE6 ensure the scroll bar rolling, the element is not flashing */#topNav

} {
width: 980px;
z - index: 100;/* set floating level */
overflow: visible;
position: fixed;
top: 50px;/* other browsers positioning, coordinates can be set up here */
_position: absolute;/* IE6 with absolute simulation fixed */
_top: expression (documentElement. ScrollTop + 50 + "px"); Dynamic set top position *//* IE6.
/* documentElement scrollTop set is always at the top of the browser the floating element, add a numerical typesetting effect */
background - color: #0000 ff.
height: 31px;
}
show {
position: absolute;
top: 500px;
left: 400px;
border: #ff0000 1px solid;

} </style>
</head>
<Body>
<Div class="jd_menu" id="topNav" >1111 </div>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/><Br/>
<Div class="show" >Show