我需要在flot图形的画布上添加一个滚动条,如果画布溢出,它应该显示一个滚动条。我该怎么做?
答案 0 :(得分:1)
做这样的事情:
<div id="outercontainer" style="width: 300px; height: 200px; overflow: scroll;">
<div id="innercontainer" style="width: 600px; height: 400px;">
</div>
</div>
并在内部容器中绘制图表。