The practice of fixing the sidebar on a webpage

Source: Internet
Author: User

There are many ways to fix the side, and today we will introduce a very simple approach.

The entire HTML document is just 23 lines of code.

There's a lot of practice on the Internet, but it's all too complicated. A whole bunch of code. And some of the plugins that are very well used by some jquery.

The sidebar approach is similar to the top and footer.

Master one of them, the others are very easy to achieve. Common examples are: Sina Weibo menu bar, Sina sports right side QR code scanning and other functions are this implementation.

The practice of fixing specific parts without scrolling with the scroll bar, see the following code:

<! DOCTYPE html>

?--><body><div id= "left" ></div><div class= "content" ></div ></body>

Performance effects such as the following:

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center "/> Welcome your attention to my blog. If in doubt, please add QQ Group: 454796847 study together!?

The practice of fixing the sidebar on a webpage

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.