一个简单的div布局

来源:互联网 发布:java按字符读取文件 编辑:程序博客网 时间:2024/05/23 01:58
<!DOCTYPE html>
<html>
<head>
   <meta  charset="utf-8" />
    <title>浮动</title>
</head>
<style type="text/css">
    #a11{
        width: 100px;
        height: 100px;
        background-color: green;
        float: right;

    }
    #a22{
        width: 100px;
        height: 100px;
        background-color: blue;
        
    }
    #a33{
        width: 100px;
        height: 100px;
        background-color: yellow;
        
    }
</style>
<body>
<div id="a11"></div>
<div id="a22"></div>
<div id="a33"></div>
</body>
</html>
0 0
原创粉丝点击