只用CSS 和html 建一个如下的表格如何做?

只用CSS 和html 建一个如下的表格如何做?,第1张

<style type="text/css">

div1{border:1px solid #dedede; width:600px; height:200px; margin:0px auto;}

left{width:299px; height:100%; border-right:1px solid #dedede; float:left; display:inline;}

left{width:300px; height:100%; float:left; display:inline;}

left1{width:100%; height:100px; float:left; display:inline; margin-top:10px;}

left1 img{margin-left:10px;}

left1 p{margin:0px; padding:0px;}

left1 img,left1 div{float:left; display:inline;}

</style>

<div class="div1">

<div class="left">

<div class="left1"><img src="" width="75px" height="75px" /><div><p>aaaaaaaa</p><p>谁谁谁</p></div></div>

<div class="left1"><img src="" width="75px" height="75px" /><div><p>aaaaaaaa</p><p>谁谁谁</p></div></div>

</div>

<div class="right">

<h1>654564646</h1>

</div>

</div>

剩下的自己再调调吧

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 10 Transitional//EN" "http://wwww3org/TR/xhtml1/DTD/xhtml1-transitionaldtd">

<html xmlns="http://wwww3org/1999/xhtml">

<head>

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

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

<style>

table { border:#30C 1px;border-style: solid;height:30px; margin-top:-1px}

</style>

</head>

<body>

<div class="table"></div>

<div class="table"></div>

<div class="table"></div>

<div class="table"></div>

<div class="table"></div>

<div class="table"></div>

</body>

</html>

就这样 多列的表格 需要调整布局 这个 调整调整就能实现

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/12180846.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存