求一div与css

来源:百度知道 编辑:UC知道 时间:2024/05/22 04:44:54
这个图片下的每一个汽车品牌是循环得到的,如果超过2个品牌,就自动回换行。
如果我把高度定死了,那么,一旦其中一个超过超过这个高度,格局就破坏了。
我想做这张图片上的效果,求大侠相救,若能解决,小弟加分相答
具体问题发到论坛了
http://bbs.phpchina.com/thread-147552-1-1.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>

<head>

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

<title>无标题文档</title>

<style>

*{margin:0px; padding:0px;}

.clear{ clear:both}

a{ text-decoration:none}

body{ font:12px arial}

dl{ float:left; margin-bottom:10px; width:340px; }

/*  这里是关键 */

dl.odd{ clear:left }

dl dt a{ color: #06C; font-weight:bold}

dl dd{&