CSS tips: Skillfully using CSS to achieve left and right side of the scroll bar

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

recently in a facial expression network (www.40607.cn), referring to some of the other expression nets, found that many expression nets are hewes the left and right side of the scroll bar pattern, left is the list. On the right is a certain kind of concrete expression page, open such a page, I still compare this pattern, such user experience to do simple and clear, user-friendly query, user experience or pretty good, unlike other websites do not do very convenient inquiries, any site is the same, famous navigation 123 is not simple people do not.


open their pages and view the source code. <frameset rows= "*" cols= "190,*" framespacing= "7" ><frame "Name=menu" src= "qq/menu.htm" tppabs= "qq/menu.htm" ><frame name=tumain src= "qq/right.htm" tppabs= "qq/right.htm" ></frameset><noframes></ Noframes> This is to take a typical frame structure to do, left and right to call the file alone, this is the most traditional method, I will not introduce.


The 2nd is to refer to the IFRAME to implement, the specific code see <body scroll= "no" ><table border= "0" width= "100%" cellspacing= "0" cellpadding= "0" height= "100%" ><tr><td><iframe name= "I1" src= "left.html" height= "100%" width= "165" > Left list menu </ IFRAME></TD><TD width= "100%" ><iframe name= "I2" src= "right.html" height= "100%" width= "100%" > Right Facial expression page </iframe></td></tr></table> This method is to make the whole page into a table around the way to insert an IFRAME, note that The body Riga Scroll=no This code, is the entire page outside the scroll bar removed, so that the left and right inside the cell has a scroll bar.


so let's introduce my own method, I was modified on the second basis, you can open my expression network to see the source code, hehe; I also do a row of two table in each TD put a DIV and then add the style left <div style= "Width:2 00px;overflow:scroll; ", give a fixed width, keep the menu fixed, the right cell to style=" width:100px;overflow:scroll; "This is not very simple, in fact, I do nothing but from the angle of SEO to consider. So the site has been changed to do so, this is also summed up a little experience today, dedication to everyone, hope that a good holding a field, write the bad do not have to pat bricks Oh,


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.