0
A
回答
1
導出圖標的外觀在export.css中設置,與Export插件捆綁在一起。
如果要更改圖標,您需要修改export.css文件或創建一個新的圖標,或者在自己的CSS中添加一個覆蓋。
負責該圖標的線路是這些:
.amcharts-export-menu .export-main > a, .amcharts-export-menu .export-drawing > a, .amcharts-export-menu .export-delayed-capturing > a {
display: block;
overflow: hidden;
text-indent: -13333337px;
width: 36px;
height: 36px;
padding: 0;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2211px%22%20height%3D%2214px%22%3E%3Cpath%20d%3D%22M3%2C0%20L8%2C0%20L8%2C5%20L11%2C5%20L5.5%2C10%20L0%2C5%20L3%2C5%20L03%2C0%22%20fill%3D%22%23888%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20fill%3D%22%23888%22%20width%3D%2211%22%20height%3D%222%22%2F%3E%3C%2Fsvg%3E');
background-color: #fff;
background-position: center;
-webkit-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.5);
box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.5);
border-radius: 18px;
margin: 8px 8px 0 10px;
}
.amcharts-export-menu .export-main:hover > a {
background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2211px%22%20height%3D%2214px%22%3E%3Cpath%20d%3D%22M3%2C0%20L8%2C0%20L8%2C5%20L11%2C5%20L5.5%2C10%20L0%2C5%20L3%2C5%20L03%2C0%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20fill%3D%22%23fff%22%20width%3D%2211%22%20height%3D%222%22%2F%3E%3C%2Fsvg%3E');
}
您可以將background-image
部分更改爲指向靜態圖像,或其他圖像數據的URL。
重寫時,您不需要指定所有上面的設置,只是背景圖像部分:
.amcharts-export-menu .export-main > a {
background-image: url(myIcon.png)!important;
}
.amcharts-export-menu .export-main:hover > a {
background-image: url(myIconHover.png)!important;
}
相關問題
- 1. Ionicons:如何添加自定義圖標?
- 2. 如何將自定義標記圖標添加到Google地圖?
- 3. 如何將自定義圖標添加到Angular2 Clarity圖標?
- 4. 如何在amCharts區域圖表中添加自定義項目符號?
- 5. Amcharts圖表的自定義類
- 6. 如何添加自定義標籤facet_grid()
- 7. 如何添加自定義標記Gmap
- 8. 添加自定義視圖到標籤
- 9. OSMdroid添加自定義圖標到ItemizedOverlay
- 10. 如何在balsamiq模型中添加自定義圖片/圖標?
- 11. 如何將自定義圖標添加到谷歌地圖v3
- 12. 如何添加自定義內容HighCharts PDF導出?
- 13. 如何在highCharts中添加自定義導出按鈕?
- 14. 添加自定義命令(自定義圖標)
- 15. 如何在ionic2中添加新的自定義字體圖標
- 16. geoxml3:如何加載自定義圖標
- 17. Bootstrap自定義圖標添加自定義圖標glyphicon bootstrap選擇
- 18. 如何在amcharts中將自定義y軸標籤添加到串行圖表中?
- 19. 從Bootstrap添加自定義圖標會導致「堆棧溢出狀態」錯誤
- 20. 在添加自定義模型時添加自定義視圖
- 21. 添加自定義的圖標,圖標材料
- 22. 添加小,自定義圖標,彈出窗口,讓谷歌圖表的標題
- 23. 如何在amcharts股票圖表中添加類別軸標題
- 24. 如何在amCharts中添加標籤到餅圖?
- 25. 如何添加2K標記與自定義位圖圖標android v2地圖
- 26. 如何使用mapbox-gl-js自定義標記添加圖層?
- 27. 如何在助推圖中添加自定義邊緣標籤?
- 28. 如何在ZK按鈕添加自定義圖標
- 29. 如何添加自定義Apple主頁圖標?
- 30. 如何將自定義標籤視圖添加到uitextview?