DIV+CSS实现左右分栏_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:29:28
Original
2456 people have browsed it


               


                    侧边栏

               

                    主体内容
                        aaa
                        sss
                   

               

#leftBodyer {
 width:160px; /*设定宽度*/
 text-align:left; /*文字左对齐*/
 float:left; /*浮动居左*/
 clear:left; /*不允许左侧存在浮动*/
 overflow:hidden; /*超出宽度部分隐藏*/
background-color: #66cc33;
}

#mainBodyer
{
    width: 570px;
    text-align: left;
    float: right; /*浮动居右*/
    clear: right; /*不允许右侧存在浮动*/
    overflow: hidden;
    background-color: #ff9933;
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!