I would like to change grid color on Chartist.js from default grey. I tried to override ct-grid-color setting, but probably did something incorrectly. Can anyone please suggest how to do it?
问问题
4473 次
2 回答
6
只需插入您的 CSS。
.ct-grid{ stroke: red;}
于 2016-03-19T13:17:19.970 回答
3
网格线:
.ct-grids line {
color: steelblue;
}
..不要忘记标签!..
网格标签:
.ct-labels span {
color: steelblue;
}
仅针对“.ct-grid”不起作用的原因是由于 css 的特异性。基本上css越具体,它就变得越重要..
.ct-grids 线 { } > .ct-grids { }
如果有点混乱,一个漂亮的小工具是 Keegan Street 的css specificity calculator。
于 2015-07-21T14:00:52.427 回答