【问题标题】:tooltip is not shown properly onmouse over鼠标悬停时工具提示未正确显示
【发布时间】:2017-09-08 20:44:38
【问题描述】:

我正在研究 angularjs 谷歌图表。我想显示图表的水平滚动条,默认情况下应该从右向左滚动

在应用 css 代码从右到左滚动之前的工作演示(鼠标悬停时的工具提示如预期所示): Working Demo before horizontal scrollbar is applied from right to lefft

应用css代码从右向左滚动后的演示 Demo, tooltip is not showing as expected when mouseover on the bar

html代码:

 <div ng-controller="myController" style="width:100%;height:50%;margin-left:0;white-space: nowrap;overflow-x:auto;overflow-y:hidden;direction:rtl;left:0;top:0;">
   <div style="width:90%;height:90%;" google-chart chart="myChart">
   </div> </div>

css代码:

div[aria-label="A tabular representation of the data in the chart."] {
  left: 0 !important;}

问题在于工具栏上的工具提示,是否有任何输入?

【问题讨论】:

  • 你为什么使用 Angular 1.3.0 beta?
  • @JorgeValle - angularjs (angular 1.0)
  • 我明白,但为什么要从 CDN 加载测试版?如果你开始一个干净的项目,我会使用最新的 1.6.x 版本。

标签: javascript html css angularjs google-visualization


【解决方案1】:

您需要将包含图表的 div 更改为:

 <div style="width:100%;height:50%;margin-left:0;white-space: nowrap;overflow-x:auto;overflow-y:hidden;right:0;top:0;">

你可以测试一下here

【讨论】:

  • 我希望水平滚动条从右向左滚动,当我使用方向时存在问题:rtl;您的回答不符合我的要求(我希望水平滚动条从我的帖子中提到的从右到左滚动)。@Lucas Rodriguez
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-07
  • 2011-04-22
  • 2011-09-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多