<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
您好,我正在创建一个网页,并使用内部 CSS。我将整个 css 代码复制到一个外部文件中,并将其与我的 html 链接起来。
在此之前,prefixfree.js 工作正常,但是当我将它复制到外部 css 时,prefixfree.js 停止与 chrome 一起工作。 Firefox 正在运行,但 chrome 不播放动画和过渡。请帮我。 谢谢
最佳答案
感谢@Alex wilson。没有前缀的链接样式表在 Chrome 和 Opera 中无法本地工作。 Firefox(和 IE?) native 支持本地 XHR,因此 -prefix-free 将在本地与它们一起正常工作。 要为 Chrome 启用本地 XHR,您需要使用标志 --allow-file-access-from-files 运行它。 要为 Opera 启用本地 XHR,您必须转到 opera:config#UserPrefs|AllowFileXMLHttpRequest,选中该选项并保存。
关于html - Prefixfree-min.js 不适用于外部 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26296809/