2013-03-07 42 views
0

默認的cubism.js規則僅涵蓋當前的瀏覽器。一旦您向下滾動瀏覽器,規則(行)結束。無論如何擴展,除了訴諸於JavaScript?已消失cubism.js規則

回答

0

在cubism.js它使用了以下控制線條的樣式(規則)

function cubism_ruleStyle(line) { 
    line 
    .style("position", "absolute") 
    .style("top", 0) 
    .style("bottom", 0) 
    .style("width", "1px") 
    .style("pointer-events", "none"); 
} 

通過改變「絕對」到「固定」現在我有我對面滾動即使屏幕上線在屏幕下方。感謝tanya提出的類似問題,center div in the middle of the screen - even when page is scrolled up/down