ul,dl{width:150px;}
li,dd{width:50%;float:left}
/*与width:100%选一个*/ /*以下两句是要解决因为ie下li之间会留白的问题;
当设置li的width:100%;后要设定ul的宽度,
ie下注意li的padding与margin为0不能与ul写在一起*/
<!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/html; charset=utf-8" /> <title>shuke </title> <style type="text/css"> *{ padding:0; margin:0; border:none} dl{ background:red; line-height:35px; width:1000px;} dt{ background:blue; clear:both} dd{ background:gray; width:50% !important; width:49%; padding:0; margin:0; float:left; border:none} .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; } .clearfix { display:inline-block; } /* Hide from IE Mac */ .clearfix {display:block;} /* End hide from IE Mac */ /* end of clearfix */ </style> <dl> <dt>内容标题</dt> <dd>内容1</dd> <dd>内容2 </dd> <dd>内容1</dd> <dd>内容2 </dd> <dt>内容标题</dt> <dd>内容1</dd> <dd>内容2 </dd> <dd>内容1</dd> <dd>内容2 </dd> asdfasdfsadf </dl> </body> </html>