DIV高度随里边内容的增多而增高

来源:互联网 发布:bootcamp助理下载 mac 编辑:程序博客网 时间:2024/04/28 02:39
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ceshidivHeight.WebForm1" %>


<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <style type="text/css">
        .wrap{width:776px;background:url(images/bullet.png)repeat-y 100%;}  
        .clear{clear:both;}  
    </style>
    <form id="form1" runat="server">
    <div>
        <div class="wrap">
            <div style="width:100px; height:100px;border:1px solid yellow; float:left;">


            </div>


             <div style="width:100px; height:100px;border:1px solid yellow; float:left; margin-left:20px;">


            </div>
            <div style="width:100px; height:100px;border:1px solid yellow; float:left;">


            </div>


             <div style="width:100px; height:100px;border:1px solid yellow; float:left; margin-left:20px;">


            </div>
            <div style="width:100px; height:100px;border:1px solid yellow; float:left;">


            </div>


             <div style="width:100px; height:100px;border:1px solid yellow; float:left; margin-left:20px;">


            </div>
            <div style="width:100px; height:100px;border:1px solid yellow; float:left;">


            </div>


             <div style="width:100px; height:100px;border:1px solid yellow; float:left; margin-left:20px;">


            </div>
             <div style="width:100px; height:500px;border:1px solid yellow; float:left;margin-left:20px;">


            </div>
             <div style="width:100px; height:100px;border:1px solid yellow; float:left;margin-left:20px;">


            </div>
             <div class="clear">


            </div>
        </div>
    </div>
    </form>
</body>
</html>
0 0
原创粉丝点击