- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经在 StackOverflow 上搜索过了。没有涵盖这种情况的答案。通常,它要么是水平的,要么是垂直的,这个例子是水平的、垂直的和卡住的行和卡住的列。
基本上,我有 3 个元素。一个中间有图表的 div,一个左边有名字的 div 和一个有日期标题的 div。左边有名字的表是固定的。 (卡住列)标题应保持固定但可滚动(卡住行)。并且图表应该能够垂直和水平滚动。
我在一些帮助下设法实现了垂直滚动,但我终究无法弄清楚为什么没有水平滚动。
这是 fiddle :
google.charts.load('current', {
packages:['timeline']
}).then(function () {
var data = new google.visualization.DataTable({
cols: [
{id: 'team', label: 'Team', type: 'string'},
{id: 'start', label: 'Season Start Date', type: 'date'},
{id: 'end', label: 'Season End Date', type: 'date'}
],
rows: [
{c: [{v: 'Baltimore Ravens'}, {v: 'Date(2000, 8, 5)'}, {v: 'Date(2001, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2001, 8, 5)'}, {v: 'Date(2002, 1, 5)'}]},
{c: [{v: 'Tampa Bay Buccaneers'}, {v: 'Date(2002, 8, 5)'}, {v: 'Date(2003, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2003, 8, 5)'}, {v: 'Date(2004, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2004, 8, 5)'}, {v: 'Date(2005, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers'}, {v: 'Date(2005, 8, 5)'}, {v: 'Date(2006, 1, 5)'}]},
{c: [{v: 'Indianapolis Colts'}, {v: 'Date(2006, 8, 5)'}, {v: 'Date(2007, 1, 5)'}]},
{c: [{v: 'New York Giants'}, {v: 'Date(2007, 8, 5)'}, {v: 'Date(2008, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers'}, {v: 'Date(2008, 8, 5)'}, {v: 'Date(2009, 1, 5)'}]},
{c: [{v: 'New Orleans Saints'}, {v: 'Date(2009, 8, 5)'}, {v: 'Date(2010, 1, 5)'}]},
{c: [{v: 'Green Bay Packers'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'Green Bay Packers'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2001, 8, 5)'}, {v: 'Date(2002, 1, 5)'}]},
{c: [{v: 'Tampa Bay Buccaneers'}, {v: 'Date(2002, 8, 5)'}, {v: 'Date(2003, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2003, 8, 5)'}, {v: 'Date(2004, 1, 5)'}]},
{c: [{v: 'New England Patriots'}, {v: 'Date(2004, 8, 5)'}, {v: 'Date(2005, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers'}, {v: 'Date(2005, 8, 5)'}, {v: 'Date(2006, 1, 5)'}]},
{c: [{v: 'New York Giants'}, {v: 'Date(2007, 8, 5)'}, {v: 'Date(2008, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers3'}, {v: 'Date(2008, 8, 5)'}, {v: 'Date(2009, 1, 5)'}]},
{c: [{v: 'New Orleans Saints2'}, {v: 'Date(2009, 8, 5)'}, {v: 'Date(2010, 1, 5)'}]},
{c: [{v: 'Green Bay Packers'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'Green Bay Packers4'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'New England Patriots5'}, {v: 'Date(2001, 8, 5)'}, {v: 'Date(2002, 1, 5)'}]},
{c: [{v: 'Tampa Bay Buccaneers6'}, {v: 'Date(2002, 8, 5)'}, {v: 'Date(2003, 1, 5)'}]},
{c: [{v: 'New England Patriots7'}, {v: 'Date(2003, 8, 5)'}, {v: 'Date(2004, 1, 5)'}]},
{c: [{v: 'New England Patriots8'}, {v: 'Date(2004, 8, 5)'}, {v: 'Date(2005, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers9'}, {v: 'Date(2005, 8, 5)'}, {v: 'Date(2006, 1, 5)'}]},
{c: [{v: 'New York Giants10'}, {v: 'Date(2007, 8, 5)'}, {v: 'Date(2008, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers11'}, {v: 'Date(2008, 8, 5)'}, {v: 'Date(2009, 1, 5)'}]},
{c: [{v: 'New Orleans Saints12'}, {v: 'Date(2009, 8, 5)'}, {v: 'Date(2010, 1, 5)'}]},
{c: [{v: 'Green Bay Packers13'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'Green Bay Packers14'}, {v: 'Date(2010, 8, 5)'}, {v: 'Date(2011, 1, 5)'}]},
{c: [{v: 'New England Patriots15'}, {v: 'Date(2001, 8, 5)'}, {v: 'Date(2002, 1, 5)'}]},
{c: [{v: 'Tampa Bay Buccaneers16'}, {v: 'Date(2002, 8, 5)'}, {v: 'Date(2003, 1, 5)'}]},
{c: [{v: 'New England Patriots17'}, {v: 'Date(2003, 8, 5)'}, {v: 'Date(2004, 1, 5)'}]},
{c: [{v: 'New England Patriots18'}, {v: 'Date(2004, 8, 5)'}, {v: 'Date(2005, 1, 5)'}]},
{c: [{v: 'Pittsburgh Steelers19'}, {v: 'Date(2005, 8, 5)'}, {v: 'Date(2006, 1, 5)'}]},
]
});
var group = google.visualization.data.group(
data,
[0, 1],
[{
column: 0,
type: 'number',
label: data.getColumnLabel(0),
aggregation: google.visualization.data.count
}]
);
group.sort([{column: 1}]);
var rowLabels = [];
var rowElements = [];
var labels = document.getElementById('labels');
for (var i = 0; i < group.getNumberOfRows(); i++) {
var team = group.getValue(i, 0);
if (rowLabels.indexOf(team) === -1) {
rowLabels.push(team);
var label = labels.appendChild(document.createElement('div'));
label.className = 'label';
label.innerHTML = team;
rowElements.push(label);
}
}
var options = {
height: 1300,
timeline: {
groupByRowLabel: true,
showRowLabels: false
},
width: 1800
};
var container = document.getElementById('chart');
var chart = new google.visualization.Timeline(container);
google.visualization.events.addListener(chart, 'ready', afterDraw);
chart.draw(data, options);
window.addEventListener('resize', function () {
chart.draw(data, options);
});
function afterDraw() {
var header = document.getElementById('header');
header.innerHTML = '';
var svg = document.getElementsByTagName('svg')[0];
var g = svg.getElementsByTagName('g')[1];
var svgNew = header.appendChild(svg.cloneNode());
var gNew = svgNew.appendChild(g.cloneNode(true));
var height = parseFloat(gNew.getElementsByTagName('text')[0].getAttribute('y')) - 25;
gNew.setAttribute('transform','translate(0,-'+height+')');
g.parentNode.removeChild(g);
var rows = container.getElementsByTagName('rect');
var rowIndex = -1;
Array.prototype.forEach.call(rows, function(rect) {
if (rect.getAttribute('x') === '0') {
rowIndex++;
if (rowIndex < rowElements.length) {
var rowHeight = (parseFloat(rect.getAttribute('height')) - 1) + 'px';
rowElements[rowIndex].style.height = rowHeight;
rowElements[rowIndex].style.lineHeight = rowHeight;
}
}
});
}
});
#header {
height: 56px;
position: fixed;
-webkit-overflow-scrolling: touch;
display: block;
top: 0px;
margin-top: 0px;
z-index: 99;
background: white;
}
#chart {
-webkit-overflow-scrolling: touch;
margin-top: 57px;
}
#labels {
border: 1px solid #b7b7b7;
margin-top: 56px;
}
.label {
border-top: 1px solid #b7b7b7;
font-family: Arial;
font-size: 13px;
text-align: right;
padding-left: 8px;
padding-right: 8px;
}
.label:first-child {
border: none;
}
.label:nth-child(even) {
background-color: #e6e6e6;
}
.label:nth-child(odd) {
background-color: #ffffff;
}
.scroll {
max-width: 100%;
-webkit-overflow-scrolling: touch;
height: 100%;
overflow-y: scroll;
}
.inline {
display: inline-block;
vertical-align: top;
-webkit-overflow-scrolling: touch;
}
.nowrap {
white-space: nowrap;
overflow-x: hidden;
overflow-y: hidden;
}
<script src="https://www.gstatic.com/charts/loader.js"></script>
<div class="nowrap">
<div class="inline" id="labels"></div>
<div class="inline scroll">
<div id="header"></div>
<div id="chart"></div>
</div>
</div>
这是一个代码笔: https://codepen.io/anon/pen/bZmKpo
最佳答案
检查水平和垂直滚动的这个简单示例。我已经修复了一个将位于中心位置的 div
.sample{
height: 30em;
width: 70em;
overflow:scroll;
}
.data{
position: fixed;
top: 50%;
margin: auto;
text-align: center;
right: 31%;
background:green;
}
<div id='entry'>
<label id="id" class="data">This is example to scroll fixed div</label>
</div>
<div class="sample">Normal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal DivNormal Div</div>
关于javascript - 固定标题和第一列的水平和垂直滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55338675/
我正在尝试实现 3 列固定-流体-固定布局。此外,布局的高度必须占据整个屏幕,使其看起来像从上到下的 3 个实心列。 总结: Left-column: fixed-width Center-col
我在网上搜索过,似乎找不到一个干净、简单、所有浏览器都友好的 3 列布局。 我希望有 3 列布局,左列固定为 200px,右列固定为 200px,中间列为剩余宽度,但最小宽度为 600px。所以整体最
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 8 年前。 Improve this q
我正在使用一些音频指纹技术来标记长录音中的歌曲。例如,在广播节目中的记录。指纹机制工作正常,但我在归一化(或下采样)方面遇到问题。 在这里您可以看到两首相同的歌曲,但波形不同。我知道我应该进行一些直流
为什么使用cout调用setprecision和fixed以及其他iomanip函数不像例如name.find('')plz这样的字符串函数 最佳答案 它们允许您以以下方式链接操作: cout <<
我正在尝试创建一个侧边栏,当用户向下滚动页面时,该侧边栏会跟随用户,并且我设法使用以下代码实现了效果: 标记 Javas
我正在尝试设置一些性能分析以及影响缓冲策略的运行时决策。我的应用程序收到一个指向由库(CUDA 或 OpenCL)分配的缓冲区的指针。 如何测试内存区域是否被页面锁定? 据我所知,POSIX 给了我们
我正在用 C# 编写一个 B+ 树实现,我为我的应用程序选择的树实现有一个非常特定的结构,它是缓存敏感的。为了实现这些属性,它对树节点有严格的布局策略。 我想要的只是使用 C# 的 fixed 来表达
我试图通过将 fragment 注入(inject)容器来在每个屏幕的底部放置一个广告 View 。通过使用 LinearLayout,我可以将 adview 置于操作栏下方的顶部。我已经尝试了 Re
我正在尝试创建一个导航稍微复杂的网站。我已经让导航看起来像我想要的初始加载,但现在我试图让它粘性导航到滚动顶部。我已经能够在导航栏到达顶部时创建一个类,但无法使其粘滞。每次我添加一个位置时,它都会跳回
首先,我正在寻找一个纯 CSS 解决方案。我可以使用 JavaScript 非常轻松地做到这一点,所以不要费心给我提示如何在 JS 中做到这一点。 我有一个包含 3 个容器的网页。其中 2 个是固定的
我猜这里有一种 super 特例。 我正在处理许多包含。现在我正在一个包含的内容文件中编码。我需要一个灯箱,它有一个 20% 的黑色背景覆盖整个页面,包括本身固定的标题,并在先前的 PHP 文件中设置
我正在尝试制作一个包含两个“固定”侧边栏图像和一个“固定”标题图像的页面。由于标题是固定的(距顶部 0 到 10%)。我不希望页眉图像与页面上的任何文本重叠。我尝试将段落标记定位为“相对”,并将其设置
我遇到了一个(水平)居中固定位置元素的解决方案,如下所示: element { width: 200px; position: fixed; left: 0; righ
我试图让我的网站主体具有固定的高度(我想!)。 无论如何,站点正文只是白色,边框大小为 1。基本上,正文的大小取决于其中的内容,例如,随着添加更多内容,它会自动调整大小。 我想要的是垂直滚动条,这样主
是否可以在 css 中创建 master-detail-states 布局? 我需要 3 个占位符: +---------------+-------+ | A | B
我的问题是,我是否必须在每个 Get/Post 请求之前单独请求检查 SSL Pinning OkHttpClient client = new OkHttpClient.Builder().cert
假设我有一个具有 N 个节点的常量(一旦构建就不会改变)平衡树,每个内部节点都有 p 个子节点。显然,访问节点的最坏情况是 logp(N)。但是访问 r 个节点的摊销成本呢?如果我们按升序访问它们(有
我知道会话固定是用php破解网站的方法。 会话固定是一种允许攻击者劫持有效用户会话的攻击 session fixation 但我不知道这可以防止我的项目中出现此问题。 是描述解决方案的方式或样本。 最
我在 jquery 砖石布局内有一个导航元素,我想将其修复到特定位置,比如右上角。是否可以这样做,以便所有其他元素都位于它周围? 诸如前置导航之类的东西.. 这是我的代码:http://jsfiddl
我是一名优秀的程序员,十分优秀!