怎么修改html前台的CSS引用
1个回答
展开全部
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<LINK href="Css/style.css" type="text/css" rel="stylesheet">
<LINK href="Css/style7.css" type="text/css" rel="stylesheet">
</head>
<body>
<script type="text/javascript">
var link = document.getElementsByTagName('link');
for(var i = 0; i<link.length; i++){
if(link[0].href.indexOf('style.css') > -1){
link[0].parentNode.removeChild(link[0]);
}
}
</script>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<LINK href="Css/style.css" type="text/css" rel="stylesheet">
<LINK href="Css/style7.css" type="text/css" rel="stylesheet">
</head>
<body>
<script type="text/javascript">
var link = document.getElementsByTagName('link');
for(var i = 0; i<link.length; i++){
if(link[0].href.indexOf('style.css') > -1){
link[0].parentNode.removeChild(link[0]);
}
}
</script>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询