inject css to page by jquery
علی ذوالفقار
1399/02/01 07:41:14 (16)
use this pattern to inject css code to page by jquery : 

$("<style>")
    .prop("type", "text/css")
    .html("\
    #my-window {\
        position: fixed;\
        display:none;\        
    }")
    .appendTo("head");

Back