我有一个Drupal JSON视图。视图格式为表格。然后我在视图的标题中有3个块。其中一个块包含一个表单,并且在某些情况下该块是空的。当块为空时,视图不会使用视图表上的视图CSS类。它只是在块上使用它们。有谁知道可能导致这种情况的原因。
我使用的CSS类是 table table-striped full sticky-enabled
我在我的网站上使用自定义主题。
答案 0 :(得分:0)
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; }