简体   繁体   English

CDN上的Selectivizr和CSS不起作用

[英]Selectivizr and CSS on a CDN does not work

When I reference CSS and selectivizr.js on a CDN, the :last-child pseudo class does not work. 当我在CDN上引用CSS和selectivizr.js时,:last-child伪类不起作用。 If however, I reference just selectivizr.js on the CDN and the CSS locally, the pseudo class works. 但是,如果仅在CDN和CSS上本地引用selectivizr.js,则伪类有效。 Any thoughts? 有什么想法吗?

From selectivirz.com : selectivirz.com

Style sheets MUST be hosted on the same domain as the page due to browser security restrictions. 由于浏览器安全限制,样式表必须与页面托管在同一域中。 Likewise, style sheets loaded using the file: protocol will not work. 同样,使用file:协议加载的样式表将不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM