Can jQuery change css style definition? (not individual css of each element)

后端 未结 4 1584
挽巷
挽巷 2020-11-29 04:23

I haven\'t seen any docs saying jQuery can change any CSS definition such as changing

td { padding: 0.2em 1.2em }

to

td {          


        
4条回答
  •  渐次进展
    2020-11-29 05:15

    I ran into a problem where I didn't know the width I wanted a class until it was loaded and did this.

    
    

    Note: it may matter where you put the script (prepend, append) depending on how you want the rules to 'cascade'.

提交回复
热议问题