当我在 CDN 上引用 CSS 和 selectivizr.js 时,:last-child 伪类不起作用。但是,如果我仅在 CDN 和本地 CSS 上引用 selectivizr.js,则伪类有效。有什么想法吗?
最佳答案
来自 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.
关于css - CDN 上的 Selectivizr 和 CSS 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24393458/