1. 程式人生 > >瀑布流

瀑布流

port mon gin column imu control mar utf-8 class

<!DOCTYPE html>
<html lang="en">
    <head>
       <meta charset="UTF-8">
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
> <title>登錄</title> <link rel="stylesheet" href="../style/bootstrap.min.css" /> <link rel="stylesheet" href="../style/common.css" /> <script src="../controller/jquery-1.11.3.min.js"></script> <script
src="../controller/bootstrap.min.js"></script> <script src=‘../controller/common.js‘></script> <script src="../controller/login.js"></script> </head> <style> /*大層*/ .container{width:100%;margin: 0 auto;} /*瀑布流層*/ .waterfall{
-moz-column-count:2; /* Firefox */ -webkit-column-count:2; /* Safari 和 Chrome */ column-count:2; -moz-column-gap: 1em; -webkit-column-gap: 1em; column-gap: 1em; } /*一個內容層*/ .item{ padding: 1em; margin: 0 0 1em 0; -moz-page-break-inside: avoid; -webkit-column-break-inside: avoid; break-inside: avoid; border: 1px solid #eee; } .item img{ width: 100%; margin-bottom:10px; } </style> <body> <div class="container"> <div class="waterfall"> <img src="../img/index/aa.png" alt="" /> <div class="icon"> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div><div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> <div class="item"> <img src="../img/index/cc.jpg" alt="" /> </div> </div> </div> </div> </body> </html>

瀑布流