3
我需要使得對角線更大(例如10px),而將可見框左側10px以及使vis線和vis-box可以正確對齊左邊就像一個垂直線如何對準可見光條和左側
.vis-item.vis-line {
position: absolute;
border-width: 10px;
border-color: red;
}
.vis-item.vis-box {
border-width: 1;
text-align: left !important;
background-color: transparent !important;
border-left-width: 10px;
border-color: red;
}
var container = document.getElementById('visualization');
var items = new vis.DataSet([
{id: 4, className:'item4', content: 'item 4', start: '2016-01-16'},
{id: 5, className:'item5', content: 'item 5', start: '2016-02-23'},
{id: 6, className:'item6', content: 'item 6', start: '2016-03-27'}
]);
var options = {
// showCurrentTime: true,
align: 'left',
orientation: {axis: 'both', item: 'top'},
height: 400,
margin: {
axis: 100
}
};
var timeline = new vis.Timeline(container, items, options);
看到網址https://jsfiddle.net/gbdjbdhv/4/但可見行比VIS-盒左側5px的左側。我需要關於如何使可見線和可見框左側垂直對齊的建議。