Format Img
$(function(){
$(".format-img img").wrapAll("
$(".format-img img").each(function(){
$(this).wrap('
');});
$(".format-img li:odd").css({background:"#f7f7f7"});
})
*{ font-size:12px; border:0;}
body{ background:#000;}
.format-img{min-width:780px;}
.format-img ul{ margin:0; padding:0; list-style:none; float:left; width:100%; background:#555; text-align:center;}
.format-img ul li{ float:left; width:25%;_width:24.9%; line-height:0; padding:15px 0}
.format-img ul li img{ border:solid 1px #f08; padding:1px; background:#fff;}
运行代码
复制代码
另存代码
提示:您可以先修改部分代码再运行