【发布时间】:2017-10-19 17:20:27
【问题描述】:
我想在一个高度为 100% 的表格中列出文件:)
这是我的 HTML(它是玉 (pug),因为我使用 NodeJS):
div.table-responsive
table
tr(style='line-height: 2vh;height: 2vh;')
th File
th Type
th Size
th Options
tr(style='line-height: 2vh;height: 2vh;')
td Jill
td Smith
td 50
td test
tr(style='line-height: 2vh;height: 2vh;')
td Eve
td Jackson
td 94
td test
这也是我的 CSS:
table {
color: black;
border: 1px solid black;
background: whitesmoke;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
height: 90vh;
width: 100%;
padding: 3%;
table-layout: fixed;
}
tr {
border-bottom: 1px solid black;
}
.table-responsive {
overflow-x: auto;
margin: 4%;
}
那么我怎样才能将所有行放在 2vh 高度(例如)并在没有行时在表格中留一个空白?
谢谢!
【问题讨论】:
标签: html css html-table css-tables