Applying CSS to Google Visualization Table

后端 未结 4 1621
别那么骄傲
别那么骄傲 2021-01-15 19:52

I have created a table in Google Visualization which uses the following code:


  
      

        
4条回答
  •  不要未来只要你来
    2021-01-15 20:50

    Take a quick peak at https://developers.google.com/chart/interactive/docs/gallery/table for more information, but you should be able to link in your own style sheet in the head tag, then reference the class in JS. The only thing I'm not certain is whether you can create custom CSS files with Wordpress, but this would be the general idea:

    HTML:

    
    

    Javascript:

    var cssClassNames = {headerRow: 'myAwesomeClass'};
    

    CSS:

    .myAwesomeClass {
       font-size: 24px;
    }
    

提交回复
热议问题