css - CDN 上的 Selectivizr 和 CSS 不起作用

标签 css cdn polyfills css-selectors selectivizr

当我在 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/

相关文章:

javascript - 哪些脚本可用于修复 IE 中的样式错误和缺点?

css - 是否有用作 CSS 背景的 SVG 的 polyfill?

css - 更改字体样式 wrt @font-face 支持

html - 如何隐藏链接并在悬停时显示它?

CSS 复选框 :checked not changing in safari

html - Top in position relative 没有按预期工作

google-app-engine - 在 Google App Engine 应用程序中存储数据

javascript - 来自带有 SSL 的 CDN 的 Google jQuery - iPad 的问题

caching - 如何以编程方式清除项目的 CDN 缓存?

javascript - 使用 babel-polyfill 加载哪些 polyfill