返回双飞翼布局cs......登陆

双飞翼布局css+html

听言刘爱超2019-04-30 11:24:52287

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <link rel="stylesheet" href="style.css">

    <title>双飞翼布局</title>

    <style>

        .container{

            margin: 0 auto;

            width: 1000px;

        }

        .wrap{

            width: inherit;


        }

        .main{

            margin: 0 310px 0 210px;

            border: 1px solid #dedede;

            min-height: 600px;

        }

        .left{

            width: 200px;

            margin-left: -100%;

            background-color: lightcoral;

        }

        .right{

            width: 300px;

            margin-left: -300px;

            background-color: aqua;

        }

        .wrap,.left,.right{

            float: left;

            min-height: 600px;

        }

    </style>

</head>

<body>

<div>

    <div>

        <div>中间</div>

    </div>

    <div>

        左侧

    </div>

    <div>右侧</div>

</div>

</body>

</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送