如何屏蔽网页CSS样式?求代码!!!!!!!!!

html-css05

如何屏蔽网页CSS样式?求代码!!!!!!!!!,第1张

<!--<link href="路径.css" rel="stylesheet" type="text/css" />-->

这个答案不是你想要的话,看看下面的

<link href="路径.css" rel="stylesheet" type="text/css" disabled/>

<div class='aa'>fsdfsdf</div>

这个加上了 disabled 这样这个 路径.css 就不在读取了,

要是还不是你想要的,请列出你的代码,并说明情况,想要达到的操作,

根据你的问题 也只能这个回答了

现次回答

<link href="aa.css" rel="stylesheet" type="text/css" class='aa'/>

<script>

var LinkId=document.all.tags("link")

for (var i=0i<LinkId.lengthi++ ){

if (LinkId[i].href=='aa.css'){LinkId[i].href=''}

}

</script>

<div class='classname'>fsdfsdf</div>

1、首先找到该模块的css文件。

2、找到你要修改的部分所调用的class名或者id。

3、在当前html页面将要修改的部分的class名或者id重新定义样式。

比如:

当前页面中调用了某个css文件,这个css文件是用于那个模块的默认css文件。

<head>

<title>change css</title>

<link rel="stylesheet" rev="stylesheet" href="css/normal.css" type="text/css" media="all" />

</head>

在这个normal.css里有个class的样式定义为:

lookme {width: 300pxheight: 10pxbackground:#ccc}

现在如果你想要让他在当前页面有所改变,你就直接在当前页面内重新定义lookme,比如:

<head>

<title>change css</title>

<link rel="stylesheet" rev="stylesheet" href="css/normal.css" type="text/css" media="all" />

</head>

<style type="text/css">

lookme {width: 100pxheight: 50pxbackground:red}

</style>

这样就可以了。最后显示结果会以当前页面为准。