如何在不恢复旧文件的情况下更改CSS文件。 [英] How do I change a CSS file without reverting to the Old One.

查看:96
本文介绍了如何在不恢复旧文件的情况下更改CSS文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经改变了这个:

I have changed from This:

<pre lang="cs">body
{
    font-size: .80em;
    font-family: &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, &quot;Segoe UI&quot;, Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    background-color:yellow;
}</pre>





到此:



To This:

<pre lang="cs">body
{
    font-size: .80em;
    font-family: &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, &quot;Segoe UI&quot;, Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    background-image:url(&quot;Image1.jpg&quot;);
    background-repeat:inherit;
    background-position:center center;
}</pre>



但每次我调试它都会恢复为背景颜色:黄色;



试过删除CSS文件并重新填充新数据。

退出Visual Studio。

这些都不起作用它总是返回黄色。

有什么建议吗?


but everytime I Debug it reverts back to the background-color:yellow;

Tried deleting the CSS file and repopulating with the new data.
Exited out of Visual Studio.
None of these worked it always returns to "Yellow".
Any suggestions?

推荐答案

检查你是否真的替换了文件,然后在客户端确保你没有从Web缓存中读取内容。换句话说,显式重新加载页面。请参阅:

http://en.wikipedia.org/wiki/Web_cache



如果它没有帮助,就意味着你弄乱了一些东西:错误放置了一些文件,弄乱了文件名,或者你的< body> ; 显式使用一些具有不同属性的CSS类...



-SA
Checkup if you really replaced the files, and then, on client side, make sure you are not reading content from the Web cache. In other words, reload pages explicitly. Please see:
http://en.wikipedia.org/wiki/Web_cache.

If it does not help, it means that you messed something up: misplaced some files, messed up file names, or maybe your <body> explicitly uses some CSS class with different properties…

—SA


这篇关于如何在不恢复旧文件的情况下更改CSS文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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