【问题标题】:Disappeared cubism.js rule消失的 cubism.js 规则
【发布时间】:2013-03-07 21:59:18
【问题描述】:

默认 cubism.js 规则仅涵盖当前浏览器。向下滚动浏览器后,规则(行)结束。除了求助于javascript之外,无论如何要扩展它?

【问题讨论】:

    标签: d3.js cubism.js


    【解决方案1】:

    在 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

    【讨论】:

      猜你喜欢
      • 2013-07-27
      • 2015-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-16
      相关资源
      最近更新 更多