我有一大堆JSON对象(它是一个音乐库,其中包含艺术家,专辑等属性,使用loadonce = true提供jqgrid)我想在整个集合中实现类似lucene(类似google)的查询 - 但是本地,即在浏览器中,不与Web服务器通信.有没有任何javascript框架可以帮助我?
我想要一个类似桌面的全页宽度布局。顶部的一些菜单(未知高度,取决于内容)和下方的 div 占据视口中的所有可用空间。
div {
padding: 0px
}
html,
body {
height: 100%;
padding: 0px;
margin: 0px;
}
.outer {
background: olive;
height: 100%;
}
.menu {
background: orange;
}
.should_fill_available_space {
background: brown;
}
Run Code Online (Sandbox Code Playgroud)
<div class="outer">
<div class="menu">
Lorem Ipsum Lorem Ipsum Lorem Ipsum
</div>
<div id="this" class="should_fill_available_space">
Brown color should go all the way down
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我有一个用于这种情况的代码笔:https ://codepen.io/marek-zganiacz/pen/NvEaxr
我想should_fill_available_space
一直往下走,就像在那里menu
有height:10%
和should_fill_available_space
有“高度:90%”的情况一样。