CSS simulation position:fixed, one side scrolling, one side not scrolling

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Analog position:fixed</title>
<style>
* {padding:0; margin:0;}
body {height:100%; overflow:hidden; font-size:14px; line-height:2; position:relative;}
HTML {height:100%; overflow:hidden;}
. fixed {position:absolute; top:10px; left:10px; width:200px; height:350px; background: #fc0; border:1px solid #f60;}
. wrapper {height:100%; overflow:auto;}
. body {padding-top:10px; margin-left:232px;}
</style>
<body>
<div class= "Fixed" > left no matter how to scroll this window it will not move </div>
<div class= "wrapper" >
<div class= "Body" >
<li><a href= "/soft/1843.shtml" target= "_blank" > Display content 1 Display content 1 display content 1 Show content 1</a></li><li> <a href= "/soft/1986.shtml" target= "_blank" > Display content 2 display content 2 display content


2</a></li><li><a href= "/soft/4374.shtml" target= "_blank" > Display content 3 display content 3 Show content 3</a></ Li><li><a href= "/soft/1060.shtml" target= "_blank" > Display content 4 display content 4 display content


4</a></li><li><a href= "/soft/4609.shtml" target= "_blank" > Display content 5 display content 5 Show content 5</a></ Li><li><a href= "/soft/1078.shtml" target= "_blank" > Show content 6 display content


6</a></li><li><a href= "/soft/2030.shtml" target= "_blank" > Display content 7 display Content 7 Show content 7</a></ Li><li><a href= "/soft/3119.shtml" target= "_blank" > Display content 8 display content 8 display content


8</a></li><li><a href= "/soft/2927.shtml" target= "_blank" > Display content 9 display Content 9 Show content </a></li ><li><a href= "/soft/2460.shtml" target= "_blank" > Show content 10 display content


10</a></li><li><a href= "/soft/5654.shtml" target= "_blank" > Show content 11 Show content 11</a></li ><li><a href= "/soft/3353.shtml" target= "_blank" > Show content 12 display content


12</a></li><li><a href= "/soft/1852.shtml" target= "_blank" > Show content 13 Show content 13</a></li ><li><a href= "/soft/1843.shtml" target= "_blank" > Show content 14 display content


14</a></li><li><a href= "/soft/1986.shtml" target= "_blank" > Show content 15 Show content 15</a></li ><li><a href= "/soft/4374.shtml" target= "_blank" > Show content 16 display content


16</a></li><li><a href= "/soft/1060.shtml" target= "_blank" > Show content 17 Show content 17</a></li ><li><a href= "/soft/4609.shtml" target= "_blank" > Show content 18 display content


18</a></li><li><a href= "/soft/1078.shtml" target= "_blank" > Show content 19 Show content 19</a></li ><li><a href= "/soft/2030.shtml" target= "_blank" > Show content 20 display content


20</a></li><li><a href= "/soft/3119.shtml" target= "_blank" > Show content 21 Show content 21</a></li ><li><a href= "/soft/2927.shtml" target= "_blank" > Show content 22 Show content 22</a></li>
</div>
</div>
<div><a href= "http://www.999jiujiu.com/" >http://www.999jiujiu.com/</A></div>
</body>

CSS simulation position:fixed, one side scrolling, one side not scrolling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.