三列中间自适应布局(来自网易)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:45:41
Original
836 people have browsed it

<div class="g-bd5 f-cb">    <div class="g-sd51">        <p>左侧定宽</p>    </div>    <div class="g-mn5">        <div class="g-mn5c">            <p>中间自适应</p>        </div>    </div>    <div class="g-sd52">        <p>右侧定宽</p>    </div></div>
Copy after login

/* 三列中间自适应布局 */.g-bd5{margin:0 0 10px;}.g-sd51,.g-sd52{position:relative;float:left;width:230px;margin:0 -230px 0 0;}.g-sd52{float:right;width:190px;margin:0 0 0 -190px;}.g-mn5{float:left;width:100%;}.g-mn5c{margin:0 200px 0 240px;}
Copy after login

 

左侧定宽

中间自适应

右侧定宽

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
Latest Issues
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!