可以在父母上设置maxHeight,并让一个特定于的子级(1)占用可用的mush空间,(2)在该子节点上设置overflow-y: scroll吗?
<div style="max-height: 200px">
<div>Header that I don't want to specify any height on</div>
<div style="max-height: auto; overflow-y: scroll">
<div>Item no 1 in long
我需要动态设置垂直布局的高度。我的页面有一个高度100 My的标题图像,高度26 My的标签是主要内容。我已经用App.controller.js编写了以下代码。不起作用
// tab_layt is the id of vertical layout var thisView = this.getView().byId("tab_layt"); var height = jQuery(window).height() - (jQuery(".header").height() + jQuery(".tab").height()); thisVi
首先,这些是我的推荐信
我创建了一些div并将它们放入div容器中。我希望容器始终滚动到底部最新的div。
$(document).ready(function() {
var container = $("#container");
var i = 0;
$("#btn").click(function() {
i++;
var div = $("<div></div>");
div.addClass("d");
div.html("Co