- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个用 div 标签(不是 html table 标签)构建的表格,我试图让表格水平和垂直滚动,保持标题静态。
除了垂直滚动条仅在水平滚动条滚动到最后时才可见外,我能够做到这一点。
谁能帮我解决这个问题?
这是一个示例 jsfiddle我创造了。这是我为在这里发布而创建的一个粗略的 fiddle ,为糟糕的造型道歉。
HTML :
<div class="query-grid-container">
<div class="table-container">
<div class="list-container">
<div style="width: 2000px;">
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Detected Data Classification Type</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Asset Name</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Selected Data Classifications</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Detected Data Classifications</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Short Description</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle0</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle1</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle2</span>
</div>
</div>
</div>
</div>
<div class="rows-container" style="width: 2000px;">
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[Inferred]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Account Number</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">ACCOUNT_ID</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[ACCOUNT_ID, ACCOUNT_ID]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A value representing an Account Number.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 3</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 3 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 1</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 1 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 2</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 2 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Airport Code</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing the IATA airport code.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alabama State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of US state Alabama.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alaska State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A seven digits number representing driver license of US state Alaska.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alberta Province Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of Canadian province Alberta.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">American Express Card</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A 16-18 character number that identifies an American Express credit card account.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Arizona State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of US state Arizona.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
</div>
</div>
</div>
CSS:
.query-grid-container {
height: calc(100% - 160px);
margin: 48px 68px 0;
position: absolute;
width: calc(100% - 136px);
border: 2px solid red;
}
.loader-container {
position: relative;
margin-top: 1em;
}
.search-table-container {
height: 100%;
}
.table-container {
height: calc(100% - 72px);
}
.top-container {
padding: 14px 30px 15px;
background: color("white");
}
.result-title {
color: color("blue", 80);
font-size: 20px;
font-weight: 600;
line-height: 24px;
}
.result-sub-title {
color: color("gray", 60);
font-size: 12px;
font-weight: 500;
line-height: 16px;
margin-top: 3px;
}
.no-result-title {
font-weight: 400;
}
.no-result-container {
height: calc(100% - 50px);
padding-top: 24px;
display: flex;
flex-direction: column;
align-items: center;
background: color("white");
}
.no-result-text {
margin-top: 6px;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
.no-result-top-container {
border-bottom: 1px solid color("gray", 10);
padding: 14px 30px;
background: color("white");
}
.name-header {
padding-left: 20px;
}
.query-description-container {
margin: 10px 0 14px 0;
padding-left: 12px;
font-size: 14px;
word-wrap: break-word;
width: calc(100% - 60px);
}
.cell-wrapper {
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
font-weight: bold;
line-height: normal;
padding: 6px 0 10px 10px;
}
.table-container {
width: 100%;
height: 100%;
display: flex;
flex-flow: column;
background-color: color('white');
}
.list-container {
overflow-x: auto;
overflow-y: hidden;
}
.rows-container {
height: 300px;
overflow-y: scroll;
overflow-x: hidden;
}
.header-cell {
display: inline-block;
border-top: 1px solid color("grey", 10);
border-bottom: 2px solid color("grey", 10);
vertical-align: bottom;
position: relative;
}
.cell-wrapper {
padding: 15px 0 9px;
line-height: 24px;
display: flex;
}
.checkbox-wrapper {
margin-left: 38px;
display: flex;
}
.column-name {
color: color("blue", 80);
opacity: 1;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
margin: auto 6px auto 0;
padding: 0 10px 0 10px;
}
.sort {
display: flex;
height: 24px;
margin: 0 0 0 2px;
}
.sort.sort-btn {
cursor: pointer;
}
.sort.sort-btn:hover {
background-color: color("gray", 10, 0.2);
}
.sort .sort-icon {
transition: all .25s ease-in-out;
margin: auto;
}
.sort .sort-icon.sort-asc {
transform: rotate(180deg);
}
.sort .sort-icon .sort-desc {
transform: rotate(0);
}
.checkbox-wrapper-class {
height: 16px;
width: 16px;
margin-right: 2px;
line-height: 21px;
}
.checkbox-wrapper-class > label {
bottom: 16px;
}
.cell {
display: inline-block;
text-overflow: ellipsis;
flex: 1 0 auto;
position: relative;
}
.row {
outline: none;
text-overflow: ellipsis;
}
.cell-group {
display: flex;
flex-flow: row;
}
最佳答案
您在错误的元素上有 overflow: scroll;
。您需要从 .list-container 中删除 overflow-x: auto;
和 overflow-y: hidden;
。您还需要删除 height: 300px;
、overflow-y: scroll;
和 overflow-x: hidden;
。完成后,您只需将 overflow: scroll;
添加到 .table-container 中,然后水平滚动条固定在底部,垂直滚动条固定在右侧。
.query-grid-container {
height: calc(100% - 160px);
margin: 48px 68px 0;
position: absolute;
width: calc(100% - 136px);
border: 2px solid red;
}
.loader-container {
position: relative;
margin-top: 1em;
}
.search-table-container {
height: 100%;
}
.table-container {
height: calc(100% - 72px);
overflow: scroll;
}
.top-container {
padding: 14px 30px 15px;
background: color("white");
}
.result-title {
color: color("blue", 80);
font-size: 20px;
font-weight: 600;
line-height: 24px;
}
.result-sub-title {
color: color("gray", 60);
font-size: 12px;
font-weight: 500;
line-height: 16px;
margin-top: 3px;
}
.no-result-title {
font-weight: 400;
}
.no-result-container {
height: calc(100% - 50px);
padding-top: 24px;
display: flex;
flex-direction: column;
align-items: center;
background: color("white");
}
.no-result-text {
margin-top: 6px;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
.no-result-top-container {
border-bottom: 1px solid color("gray", 10);
padding: 14px 30px;
background: color("white");
}
.name-header {
padding-left: 20px;
}
.query-description-container {
margin: 10px 0 14px 0;
padding-left: 12px;
font-size: 14px;
word-wrap: break-word;
width: calc(100% - 60px);
}
.cell-wrapper {
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
font-weight: bold;
line-height: normal;
padding: 6px 0 10px 10px;
}
.table-container {
width: 100%;
height: 100%;
display: flex;
flex-flow: column;
background-color: color('white');
}
.header-cell {
border-top: 1px solid color("grey", 10);
border-bottom: 2px solid color("grey", 10);
vertical-align: bottom;
position: relative;
float: left;
}
.cell-wrapper {
padding: 15px 0 9px;
line-height: 24px;
display: flex;
}
.checkbox-wrapper {
margin-left: 38px;
display: flex;
}
.column-name {
color: color("blue", 80);
opacity: 1;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
margin: auto 6px auto 0;
padding: 0 10px 0 10px;
}
.sort {
display: flex;
height: 24px;
margin: 0 0 0 2px;
}
.sort.sort-btn {
cursor: pointer;
}
.sort.sort-btn:hover {
background-color: color("gray", 10, 0.2);
}
.sort .sort-icon {
transition: all .25s ease-in-out;
margin: auto;
}
.sort .sort-icon.sort-asc {
transform: rotate(180deg);
}
.sort .sort-icon .sort-desc {
transform: rotate(0);
}
.checkbox-wrapper-class {
height: 16px;
width: 16px;
margin-right: 2px;
line-height: 21px;
}
.checkbox-wrapper-class > label {
bottom: 16px;
}
.cell {
display: inline-block;
text-overflow: ellipsis;
flex: 1 0 auto;
position: relative;
}
.row {
outline: none;
text-overflow: ellipsis;
}
.cell-group {
display: flex;
flex-flow: row;
}
<!DOCTYPE html>
<html>
<head>
<title>testtt</title>
</head>
<link rel="stylesheet" type="text/css" href="styles.css">
<body>
<div class="query-grid-container">
<div class="table-container">
<div class="list-container">
<div style="width: 2000px; height: 50px;">
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Detected Data Classification Type</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Asset Name</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Selected Data Classifications</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Detected Data Classifications</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">Short Description</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle0</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle1</span>
</div>
</div>
</div>
<div class="header-cell" style="width: 250px;">
<div class="cell-wrapper">
<div class="sort" role="Button" tabindex="0">
<span class="column-name">someTitle2</span>
</div>
</div>
</div>
</div>
<div class="rows-container" style="width: 2000px;">
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[Inferred]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Account Number</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">ACCOUNT_ID</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[ACCOUNT_ID, ACCOUNT_ID]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A value representing an Account Number.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 3</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 3 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 1</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 1 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Address Line 2</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">Address Line 2 of a multi-line address.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Airport Code</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing the IATA airport code.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alabama State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of US state Alabama.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alaska State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A seven digits number representing driver license of US state Alaska.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Alberta Province Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of Canadian province Alberta.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">American Express Card</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A 16-18 character number that identifies an American Express credit card account.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
<div class="row" tabindex="0" role="row">
<div class="cell-group">
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">
<div>
<a href="#">Arizona State Driver's License</a>
</div>
</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">A string representing driver license of US state Arizona.</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
<div class="cell" style="width: 250px;">
<div class="cell-wrapper">[]</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
关于javascript - 使垂直滚动条可见,保持表头静态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49119257/
我想对齐输入,它有两个标签和一个没有任何标签的按钮,以便它们都在同一级别。 这是期望的效果: 这是我到目前为止得到的: 我通过在按钮前添加带有空白空间的标签,设法让它看起来像我想要的样子,但这并不理想
您好,我有一个关于 JavaFX 的问题。我担心答案是剥皮,我对此一无所知,但这里是。 我想在 JavaFX 中制作 Accordion/TabPane 交叉。我将尝试用文字解释自己,但在下面我已经包
这可能被认为是一个低俗的问题。然而,我还没有找到任何代码,也没有找到任何讨论如何用我的编程语言 C 来解决这个问题的论坛。已经进行了大量的尝试,并且最终都以实际上“硬编码”新数组而告终。 我正在尝试垂
我有以下代码: public Frame() { super(); setVisible(true); setDefaultCloseOperation(JFrame.EXIT
是否可以将 UIModalTransitionStyleFlipHorizontal 修改为垂直而不是水平? 我通常会使用 CATransition 来执行此操作,但该方法需要将一个 UIView
我有一个 ios5 导航的想法,我正在一个应用程序上做,我认为从 SOF 那里得到一些关于我的想法的建设性批评是明智的。 p> 想法: UIView 包含 6 个左右垂直堆叠的按钮 UIButtons
我正在努力进行一些 iOS 开发,我希望有人能够帮助我提出建议。我想实现一堆看起来像一副纸牌的 UIView。用户应该能够通过触摸刷出“卡片”。我想到了带有 pagingEnabled 的 UIScr
我想创建一个包含四张图片的入口页面作为指向其他页面的链接。但我希望这些图片显示在显示器的中间(垂直和水平)。我已经尝试了很多事情,但我做对了。我什至无法以任何方式垂直对齐图片(例如底部,您将在代码中看
我有代码在 div 的底部创建一个元素作为向下的“箭头/指针”。 我需要这样写,以便“箭头/指针”指向左侧 当前代码 - HTML 掩码 css 在 fiddle 中 https://j
下面的代码将焦点放在中间的 div 上,但该 div 出现在窗口的底部。如何使该 div 居中,使其显示在窗口的中心[垂直],而不设置固定位置。 $(function(){ $("#focus
这个问题在这里已经有了答案: Vertical Align Center in Bootstrap 4 [duplicate] (20 个答案) 关闭 4 年前。 我创建了一个由两列组成的结构,第一
演示:http://jsfiddle.net/vpH8r/2/ 我在上面创建了一个 jfiddle,试图让垂直滑动正常工作。 当前的问题是 slider 标签不会移动,并且不会出现从顶部到底部的干净滑
我正在尝试在 javascript 中创建一个垂直 slider 小部件。我不是在寻找任何插件或库,我正在尝试查看如何使用纯 javascript 完成它。我想我大概明白了。 请在此处查看到目前为止已
我正在尝试创建一个响应式导航列表,并将图像置于页面列表的中心 我已经设法接近那个,但是图像比列表更靠前。 我想像这样得到它,但似乎无法弄清楚。 任何帮助将不胜感激! 代码:https://jsfidd
有人可以帮我将导航栏居中,使其在页面上垂直居中吗? 我希望导航栏中央的链接位于顶部,而不是像现在这样向左浮动。 提前致谢 Toggle navigation
我想垂直、水平转换图像,并使用 javascript 缩放图像。目前我设法使调整大小的图像起作用,但它看起来不正确。我正在尝试使用类似于 Transform image 的东西.调整垂直移动条时,图像
这可能是一个问题,但要求太多,但我已经达到了我的极限。 我有这段 ( http://jsfiddle.net/3whTa/) CSS,它创建了一个箭头水平面包屑导航。 我想做的是将其转换为垂直。就像箭
我正在使用 opencv 进行非常简单的操作,但我无法理解为什么会出现此错误/问题。图像被操作到图像的一半(垂直)。 Mat img = imread("/Users/tanmoy/Documents
我想知道是否有人有任何技术来定位 css 生成的内容。例如: .block { height: 150px; width: 150px; border: 1px solid black;
关闭。这个问题需要更多 focused .它目前不接受答案。 想要改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭3年前。 Improve this que
我是一名优秀的程序员,十分优秀!