如何使用垂直滚动条显示标题?

时间:2017-01-04 13:58:16

标签: css html5

我知道这有时是愚蠢或有线的问题,没有任何努力。

我想要一个没有垂直滚动条的标题。 如图所示:这是主页设计,我需要显示顶部黄色标题条而不像图像2那样垂直滚动条

enter image description here

图片2:

enter image description here

我尝试了很多css hack并最终解决了现有设计的一些问题。我怎样才能实现?

2 个答案:

答案 0 :(得分:0)

将包装容器的溢出设置为隐藏溢出,如下所示:

  

溢出-y:隐藏;

答案 1 :(得分:0)

@Fady有正确的想法,有点......

因此,此处的标题似乎与包含滚动条的内容分开。

总体思路。

@Query("very long query...")
List<User> getFiltered(@Param("param1") String param1, @Param("param2") String param2...and so on);

实际上是写出来的,它是这样的:

HTML

--- Header width Fixed Height
 |
 |
--- Main Content - with a set height and overflow-y set to auto.

CSS

<header>Header Content here</header>
<main>Main Content here</main>