HTML “link” (stylesheet) disabled attribute

前端 未结 3 1784
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 22:44

I\'m using JavaScript to enable/disable stylesheets using the following:

document.styleSheets[0].disabled = true|false;

This JS works fine,

3条回答
  •  情深已故
    2021-01-01 23:38

    You can use JavaScript's removeAttribute method for that.

    
        
            
    
            
        
        
            

    something

提交回复
热议问题