您的位置:首页 > 编程语言 > Python开发

day14 python css 漂浮的学习

2016-09-19 22:13 253 查看
<!DOCTYPE html>

<html>

<head lang="en">

    <meta charset="UTF-8">

    <title></title>

</head>

<body>

    <div style="width: 500px;height:500px;border: 1px solid yellow">

        <div style="width: 20%;background-color: red;float: left">a</div>

        <div style="width: 30%;background-color: red;float: left">f</div>

        <div style="clear: both"></div><!--在所有漂浮的孩子最后加她可以在父类没有高度的情况下,让子类把它撑起来 -->

    </div>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: