gpt4 book ai didi

html - 使用 DIVS 创建表?

转载 作者:行者123 更新时间:2023-11-28 07:02:41 26 4
gpt4 key购买 nike

美好的一天!我想问一下我怎样才能把我的 table 做成这样? enter image description here

这是我的代码,但不幸的是我在边框、行和单元格大小方面遇到了问题。 #DIVception。提前致谢!

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="div.css">

</head>



<div class="table">
<div class="rTable">
<div class="rTableRow">
<div class="rTableHead"><strong>Request:</strong></div>
<div class="rTableHead"><strong>Processing</strong></div>
<div class="rTableHead"><strong>Job Name:</strong></div>
<div class="rTableHead"><strong>Anthem Inventory</strong></div>
</div>
</div>
<div class="rTableMessage">
<p>
Hi,
Files successfully loaded. You may now verify at your end.
If feed files have fallouts, reason for fallouts can be seen in
the error message of the file. You may edit/update your file so
that the other fallouts can be processed by the job.
Note:
All updated files sent to the server will update the existing
stored records. Hence, there will be no reloading of the
previous files.

Please see details below:
</p>
</div>

<div class="rTableDetails">
<div class="rTableRow">
<div class="rTableFallouts"><strong>Fallouts:</strong></div>
<div class="rTableHead">Check attachment</div>
</div>
</div>

<div class="rTableDetails">
<div class="rTableRow">
<div class="rTableLink"><strong>Link:</strong></div>
<div class="rTableHead">Check attachment</div>
</div>
</div>

<div class="rTableDetails">
<div class="rTableRow">
<div class="rTableBlank"></div>
<div class="rTableBlank2"></div>
</div>
</div>

<div class="rTableDetails">
<div class="rTableRow">
<div class="rTableLink"><strong>Details:</strong></div>
<div class="rTableProcess">Processed @ 5:40 PM</div>
</div>
</div>




</div>

</html>

这是我的 CSS 代码:

 .table {
width: 100%;
height: 100%;
border-style: solid;
border-width: 1px;
}
.rTable {
display: table;
width: 100%;
}
.rTableRow {
display: table-row;
}
.rTableMessage {
padding-right: 20px;
padding-left: 20px;
padding-bottom: 20px;
padding-top: 20px;
}
.rTableHead {
display: table-cell;
padding: 3px 10px;
border: 1px solid #999999;
}
.rTableDetails {
display: table;
width: 100%;
}
.rTableFallouts, .rTableLink {
display: table-cell;
border: 1px solid #999999;
width: 120px;
}
.rTableBlank {
display: table-cell;
border: 1px solid #999999;
width: 120px;
height: 25px;
background-color: gray;
}
.rTableBlank2 {
display: table-cell;
border: 1px solid #999999;
width: auto;
height: 25px;
background-color: gray;
}
.rDetails {
height: auto;
border: 1px solid #999999;
}

提前致谢!

最佳答案

如果你尝试 overflow:hidden;在 .table 中,它应该可以解决您的问题

关于html - 使用 DIVS 创建表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33138856/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com