各位大神,可以帮我用div+css来做一个一行四列的表格代码吗?在线等……

 我来答
hualu1996339
2011-08-29 · 超过15用户采纳过TA的回答
知道答主
回答量:75
采纳率:0%
帮助的人:32.1万
展开全部
<div style=" width:100%; border:1px #ccc solid; height:25px;">
<div style=" float:left; width:25%; border-right:1px #ccc solid; height:25px;"></div>
<div style=" float:left; width:25%; border-right:1px #ccc solid; height:25px;"></div>
<div style=" float:left; width:25%; border-right:1px #ccc solid; height:25px;"></div>
<div style=" float:left; width:25%; height:25px;"></div>
</div>
<!--写得粗糙了,你整理下吧,给个建议你,我觉得该用table的时候还是要用的,在这里,table还是比div要好的-->
兜兜里有着糖Cy
2011-08-29 · TA获得超过219个赞
知道答主
回答量:184
采纳率:0%
帮助的人:78.9万
展开全部
<!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=gb2312" />
<title>无标题文档</title>
<style>
.d1{
overflow:hidden;
height:30px;
}
.d1 div{
float:left;
height:30px;
line-height:30px;
}
</style>
</head>
<body>
<div class="d1">
<div>第一列</div>
<div>第二列</div>
<div>第三列</div>
<div>第四列</div>
</div>
</body>
</html>
看一下,细节自己修改一下。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
maxue2010
2011-08-29 · TA获得超过439个赞
知道小有建树答主
回答量:272
采纳率:75%
帮助的人:107万
展开全部
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式