默认cubism.js规则仅适用于当前浏览器。向下滚动浏览器后,规则(行)结束。除了求助于javascript之外,还有什么要扩展的?
发布于 2013-04-09 00:25:29
在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
https://stackoverflow.com/questions/15282584
复制相似问题