如何将原始css文件替换为我的css文件 [英] How replace original css file to my css file

查看:89
本文介绍了如何将原始css文件替换为我的css文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将原始css文件替换为我的css文件。我的css文件超过2000行。我想用原始的css替换它。我是如何用Javascript制作的?

How replace original css file to my css file. My css file have over 2000 lines. I want replace it with original css. How i make it with Javascript ?

推荐答案

尝试如下:



在你的母版页上放你的css在原来的那个之后。然后你的css将覆盖原来的css。



< head runat =server>



< link type =text / css =样式表href =<%= Url.Content(〜/ Content / style / original.css)%> />



< link type =text / css =样式表href =<%= Url.Content(〜/ Content / style / your.css)%> />



< / head>





我希望这对你有帮助。
Try like below:

On your master page put your css after the original one.Then Your css will override the css of original one.

<head runat="server">

<link type="text/css" rel="Stylesheet" href="<% =Url.Content("~/Content/style/original.css") %>" />

<link type="text/css" rel="Stylesheet" href="<% =Url.Content("~/Content/style/your.css") %>" />

</head>


I hope this will help to you.


这篇关于如何将原始css文件替换为我的css文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆