When I wrote the essay, I found that cnblogs seems to beArticleThe CSS defined in HTML (for example, <LINK rel = "stylesheet" type = "text/CSS" href = "xxx.css"/>) is filtered out, I remember that I had previously added a JS function to my favorites and I could dynamically load CSS files. I found it on my computer,CodeIt cannot be used at work.
Loadjscssfile
< Script Language = " Javascript " >
Function Loadjscssfile (filename, filetype ){
If (Filetype = " JS " ){
VaR Fileref = Document. createelement ( ' Script ' );
Fileref. setattribute ( " Type " , " Text/JavaScript " );
Fileref. setattribute ( " SRC " , Filename)
} Else If (Filetype = " CSS " ){
VaR Fileref = Document. createelement ( " Link " );
Fileref. setattribute ( " REL " , " Stylesheet " );
Fileref. setattribute ( " Type " , " Text/CSS " );
Fileref. setattribute ( " Href " , Filename)
}
If ( Typeof Fileref ! = " Undefined " ) Document. getelementsbytagname ( " Head " )[ 0 ]. Appendchild (fileref)
}
Loadjscssfile ( " Http://news.163.com/special/0001jt/dblue.css " , " CSS " );
< /
Yes for local remote connection ..