摘要: <!DOCTYPE HTML><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>CSS3瀑布布局</title> <style type="text/css"> /***** 阅读全文
posted @ 2016-06-27 17:44 Jinsuo 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1,在浮动元素后面增加<br/>标签; <br/>标签有自带的清除浮动属性; 2,在浮动元素后面增加一个清除浮动层; <div> <div style="float:left"></div> <div style="float:left"></div> <div style="clear:both" 阅读全文
posted @ 2016-06-27 15:20 Jinsuo 阅读(162) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $('.img-box img').load(function(){ var w = $(this).width(); var h =$(this).height(); if (w < h){ $(this).css('height','100%'); var b... 阅读全文
posted @ 2016-06-27 14:40 Jinsuo 阅读(453) 评论(0) 推荐(0) 编辑
摘要: span{ display: inline-block; border-top: 100px solid red; border-right: 100px solid transparent; border-bottom: 100px solid transparent; border-left: 阅读全文
posted @ 2016-06-27 14:22 Jinsuo 阅读(107) 评论(0) 推荐(0) 编辑
摘要: -webkit-column-width:100%; //列宽 -moz-column-width:100%;-o-colum-width:100%;colum-width:100%;-webkit-column-count: 2; //列数-moz-column-count: 2;-o-colum 阅读全文
posted @ 2016-06-27 12:06 Jinsuo 阅读(104) 评论(0) 推荐(0) 编辑