下面的CSS显示的一行一列
请教如何实现4行4列。谢谢 .search_member { height:96px; min-height:96px; padding:8px; clear:both; border-bottom:1px dotted #ccc; }
.search_member dt{ float:left;}
.search_member dt img{ height:90px; width:90px; padding:1px; border:1px solid #dcdcdc;}
.search_member dd{ float:right; height:30px; line-height:30px; width:640px;}
.search_member dd em{ font-style:normal; color:#999;padding-left:10px;}
请教如何实现4行4列。谢谢 .search_member { height:96px; min-height:96px; padding:8px; clear:both; border-bottom:1px dotted #ccc; }
.search_member dt{ float:left;}
.search_member dt img{ height:90px; width:90px; padding:1px; border:1px solid #dcdcdc;}
.search_member dd{ float:right; height:30px; line-height:30px; width:640px;}
.search_member dd em{ font-style:normal; color:#999;padding-left:10px;}
应该是这行,但我不知道怎么写。
请高手指教谢谢
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
.search_member { height:96px; min-height:96px; padding:8px; clear:both; border-bottom:1px dotted #ccc; }
.search_member dl{}
.search_member dt{ float:left;}
.search_member dt{ height:90px; width:100%; padding:1px; border-bottom:1px solid #dcdcdc;}
.search_member dd{ float:right; height:30px; line-height:30px; width:640px;}
.search_member dd em{ font-style:normal; color:#999;padding-left:10px;}</style>
</head>
<body>
<div class="search_member">
<dl><dt>hello word</dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
</div></body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
.search_member { height:96px; min-height:96px; padding:8px; clear:both; border-bottom:1px dotted #ccc; }
.search_member dl{}
.search_member dt{ float:left;}
.search_member dt{ height:90px; width:100%; padding:1px; border:1px solid #dcdcdc;}
.search_member dd{ float:right; height:30px; line-height:30px; width:640px;}
.search_member dd em{ font-style:normal; color:#999;padding-left:10px;}</style>
</head>
<body>
<div class="search_member">
<dl><dt>hello word</dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
</div></body>
</html>
可我想要的不是静态的
<dl><dt>hello word</dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
<dl><dt></dt></dl>
下面的这些代码是我想要实现4行4列的内容。
烦请大虾能再指教一下,感激不尽!!!!!<dl class="search_member">
<dt>
<a href="{$MODULE[member][url]}view.php?userid={$v[userid]}" title="{$v[username]}" target="_blank"><img src="{avatar($v[userid])}" alt="{$v[username]}" target="_blank"/></a>
<br>
专家:<a href="{$MODULE[member][url]}view.php?userid={$v[userid]}" class="name"><span style="color:red">{$v[username]}</span></a>
</dt>
</dl>
<dl class="search_member">
<dt>
<a href="{$MODULE[member][url]}view.php?userid={$v[userid]}" title="{$v[username]}" target="_blank"><img src="{avatar($v[userid])}" alt="{$v[username]}" target="_blank"/></a>
<br>
专家:<a href="{$MODULE[member][url]}view.php?userid={$v[userid]}" class="name"><span style="color:red">{$v[username]}</span></a>
</dt>
</dl>
{/loop}
<style type="text/css">
<!--
body {text-align:left; background:#FFF url({SKIN_PATH}images/bg_2.jpg) repeat-x 0 -94px;}
#head{ margin-top:10px; height:60px;}
#logo { float:left; width:200px; height:60px; position:static; top:0;}
-->
</style>
<div id="right">
<div class="modellist_2">
<h3>{$MODEL[$modelid][name]}</h3>
{tag_按模型列出用户}
</div>
</div>
{template 'member','footer'}