【发布时间】:2016-06-22 11:09:38
【问题描述】:
我有一个 Drupal JSON 视图。视图格式为表格。然后我在视图的标题中有 3 个块。其中一个块包含一个表单,并且在某些情况下该块是空的。当块为空时,视图不会使用视图表上的视图 CSS 类。它只是在块上使用它们。有谁知道可能导致这种情况的原因。
我使用的 CSS 类是 table table-striped full sticky-enabled
我在我的网站上使用自定义主题。
【问题讨论】:
我有一个 Drupal JSON 视图。视图格式为表格。然后我在视图的标题中有 3 个块。其中一个块包含一个表单,并且在某些情况下该块是空的。当块为空时,视图不会使用视图表上的视图 CSS 类。它只是在块上使用它们。有谁知道可能导致这种情况的原因。
我使用的 CSS 类是 table table-striped full sticky-enabled
我在我的网站上使用自定义主题。
【问题讨论】:
Hi have a look at this
body
{
font:16px Calibri;
}
table { border-collapse:separate; border-top: 3px solid grey; }
td {
margin:0;
border:3px solid grey;
border-top-width:0px;
white-space:nowrap;
}
div {
width: 600px;
overflow-x:scroll;
margin-left:5em;
overflow-y:visible;
padding-bottom:1px;
}
.headcol {
position:absolute;
width:5em;
left:0;
top:auto;
border-right: 0px none black;
border-top-width:3px; /*only relevant for first row*/
margin-top:-3px; /*compensate for top border*/
}
.headcol:before {content: 'Row ';}
.long { background:yellow; letter-spacing:1em; }
【讨论】: