zoukankan      html  css  js  c++  java
  • 不规则瀑布流图片墙

    <!DOCTYPE HTML>

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>CSS3瀑布布局</title>
    <style type="text/css" >
    /*图片大小控制CSS By Tekin */
    img,a img{
    border:0;
    margin:0;
    padding:0;
    max-690px;
    expression(this.width>690?”690px”:this.width);
    max-height:690px;
    height:expression(this.height>690?”690px”:this.height)
    }</style>
    <style>

    .container{

    -webkit-column-160px;

    -moz-column-160px;

    -o-colum-160px;

    -webkit-column-gap:1px;

    -moz-column-gap:1px;

    -o-column-gap:1px;

    }

    div:not(.container){

    -webkit-border-radius:5px;

    -moz-border-radius:5px;

    border-radius:5px;

    background:#D9D9D9;

    border::#CCC 1px solid;

    display:inline-block;

    157px;

    position:relative;

    margin:2px;

    }

    .title{

    line-height:80px; font-size:18px; color:#900;

    text-align:center;

    font-family:"Microsoft YaHei";

    }

    </style>

    </head>

    <body>

    <section>

    <div class="container">

    <div style="height:80px" class="title">纯CSS3瀑布布局</div>

    <div style="height:260px"> <img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:65px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:120px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:145px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:90px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:145px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:160px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:65px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:230px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:140px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:85px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:20px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:145px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:50px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:65px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:230px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:140px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:85px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:20px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:145px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:50px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:145px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:160px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    <div style="height:240px"><img src="hotel-internazionale-facade-thumbnail.jpg" /></div>

    </div>

    </section>

    </body>

    </html>

    效果图

  • 相关阅读:
    【剑指offer】二叉搜索树与双向链表
    【剑指offer】复杂链表的复制
    【剑指offer】二叉树中和为某一值的路径
    2018.12.30 Intellij IDEA设置main方法自动补全
    2018.12.29 Spring FrameWork各个版本下载
    2018.12.26 Mac下的Eclipse在编辑Spring配置文件xml时自动提示类class包名配置
    2018.12.25 Spring中JDBCTemplate模版API学习
    2018.12.24 Spring中的aop演示(也就是运用aop技术实现代理模式)
    2018.12.22 Spring学习02
    2018.12.24 Ubuntu18.0.4 主题参考
  • 原文地址:https://www.cnblogs.com/annabook/p/3600158.html
Copyright © 2011-2022 走看看