简体   繁体   English

来自css文件的CSS直接插入到html文件中

[英]CSS from css file is directly inserted into html file

When I check the page in developer tools, strangely the CSS code from CSS files has been inserted into the HTML and I don't know how. 当我在开发人员工具中检查页面时,奇怪的是CSS文件中的CSS代码已插入到HTML中,我不知道如何。 The project I'm working on uses angular js 1. 我正在研究的项目使用角度js 1。

The link tag is written in the following format: 链接标记采用​​以下格式编写:

 <link rel="stylesheet" href=" " />

But in the developer tools, it is converted to: 但在开发人员工具中,它被转换为:

<style media="" data-href="css/chartist.css">
 /* All the css code here */
</style>

Extra Javascript called "Prefix free" was causing this behavior. 额外的Javascript称为“前缀免费”导致此行为。 After removing it, it started working fine. 删除后,它开始正常工作。

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

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