2016-03-14 113 views
1

在股票圖表中有用於選擇日期的輸入框。Highcharts:如何更改StockCharts中RangeSelector輸入框的邊框顏色?

在文本框內單擊時出現邊框,我想徹底刪除此效果?

我試着用:

inputStyle: { 
       select: { 
         fill: '#000', 
         style: { 
          color: 'white' 
         } 
        } 

      } 

inputStyle: { 
     color: '#039', 
     fontWeight: 'bold', 
     borderColor:'#000' 
    } 

請參閱本jsfiddle。我想在點擊範圍選擇器時完全消除這種邊界效應。

但它不工作。任何幫助真的很感激。謝謝!

回答

1

請嘗試在你的CSS

input.highcharts-range-selector:focus { 
    outline: none!important; 
} 
+0

它不是'outline'其實,我試着用'input.highcharts範圍-選擇:聚焦{ 背景色:紅色;概要:無!重要; ''。我可以看到紅色的背景,但輪廓仍然存在。 – Kamran

1

恰好碰到了這以下的;嘗試:

input.highcharts-range-selector:focus { 
    border: none !important; 
    height: 22px !important; 
    width: 95px !important; 
}