我注意到,我的iphone5上有safari
$(window).resize()
Run Code Online (Sandbox Code Playgroud)
它奇怪地工作......
我有这个代码:
$(document).ready(function () {
$(window).resize(function() {
avviaChart();
initialize();
if($('#time').is(':checked')){
$("#time").removeAttr('checked');
$("#Time").css('border','2px solid #ffffff');
}
});
});
Run Code Online (Sandbox Code Playgroud)
这个代码应该只在窗口大小改变时工作....与其他浏览器工作非常好,但是如果我滚动页面(并且窗口的大小不变),使用safari代码也可以工作...
怎么可能?吴
我的图表是这样的:
我知道如果我想在highcharts中禁用工具提示效果,我需要添加到我的代码中:
tooltip: {
enabled: false
}
Run Code Online (Sandbox Code Playgroud)
但我不知道如何禁用它只有一点...
series: [{
name: 'Reading',
colorByPoint:
{ color: "#ff0000"},
data: [
// [X, Y, Z]
[1, 8, 1],
[1, 9, 2],
[1, 1, 5],
[2, 7, 2],
[2, 3, 4],
[4, 5, 7],
[4, 5, 8],
[7, 3, 3],
[7, 8, 5],
[10, 7, 10]
]},{ ------ draw a line on bottom frame
data: [[0,0,5],[10,0,5]
],
lineWidth: 1,
marker: {
enabled: false
},
color: 'rgba(0,0,0,0.51)'
}, ------ end draw
{ // ------ …Run Code Online (Sandbox Code Playgroud) 我不太了解jQuery所以我不知道如何添加CSS内联.这是我的代码:
<div class="gm-style-iw" style="top: 9px; position: absolute; left: 15px; width: 23px;">
<div style="display: inline-block; overflow: hidden; max-height: 330px; max-width: 176px;">
<div style="overflow: auto">
<div id="iw-container">
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我想更改max-width第二个div并添加overflow: none到上面的div #iw-container.
我尝试了这个,但它不起作用:
var iwOuter = $('.gm-style-iw');
iwOuter.children().css({max-width:'250px !important'});
iwOuter.children().children().css({overflow:'none'});
Run Code Online (Sandbox Code Playgroud)
编辑我想自定义infowindow谷歌和我对于更改max-width和溢出的值很重要....我认为你的代码可能是好的,但我不明白为什么不工作...