CSS simulates position: fixed, scrolling at one side, not scrolling at one side, positionfixed

Source: Internet
Author: User

CSS simulates position: fixed, scrolling at one side, not scrolling at one side, positionfixed

<! DOCTYPE html PUBLIC "-// 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 = UTF-8"/>
<Title> simulate position: fixed </title>
</Head>
<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"> no matter how you scroll the window on the left, it will not be moved </div>
<Div class = "wrapper">
<Div class = "body">
<Li> <a href = "/soft/1843.shtml" target = "_ blank"> display content 1 show content 1 show content 1 </a> </li> <li> <a href = "/soft/1986.shtml" target = "_ blank"> display content 2 display content 2


2 </a> </li> <a href = "/soft/4374.shtml" target = "_ blank"> display content 3 display content 3 </ a> </li> <a href = "/soft/1060.shtml" target = "_ blank"> display content 4 display content 4 display content


4 </a> </li> <a href = "/soft/4609.shtml" target = "_ blank"> show content 5 show content 5 show content 5 </ a> </li> <a href = "/soft/ipv8.shtml" target = "_ blank"> display content 6


6 </a> </li> <a href = "/soft/2030.shtml" target = "_ blank"> display content 7 display content 7 </ a> </li> <a href = "/soft/3119.shtml" target = "_ blank"> display content 8 display content 8


8 </a> </li> <a href = "/soft/2927.shtml" target = "_ blank"> display content 9 display content </> </li> <a href = "/soft/2460.shtml" target = "_ blank"> display content 10


10 </a> </li> <a href = "/soft/5654.shtml" target = "_ blank"> display content 11: display content 11 </a> </li> <a href = "/soft/3353.shtml" target = "_ blank"> display content 12


12 </a> </li> <a href = "/soft/1852.shtml" target = "_ blank"> show content 13 </a> </li> <a href = "/soft/1843.shtml" target = "_ blank"> display content 14


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


16 </a> </li> <a href = "/soft/1060.shtml" target = "_ blank"> display content 17 display content 17 </a> </li> <a href = "/soft/4609.shtml" target = "_ blank"> show content 18


18 </a> </li> <a href = "/soft/ipv8.shtml" target = "_ blank"> display content 19 display content 19 </a> </li> <a href = "/soft/2030.shtml" target = "_ blank"> display content 20


20 </a> </li> <a href = "/soft/3119.shtml" target = "_ blank"> show content 21 show content 21 </a> </li> <a href = "/soft/2927.shtml" target = "_ blank"> display content 22: display content 22 </a> </li>
</Div>
</Div>
<Div> http://www.999jiujiu.com/</div>
</Body>
</Html>

Related Article

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.