如何重新加载样式表? [英] How to reload the style sheets?

查看:88
本文介绍了如何重新加载样式表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


安装网站后,重新加载样式表的最佳方法是什么?


我们有在DefaultSite.css文件中进行最后一分钟更改,我们已将新文件复制到:


C:\Program Files \Common Files \ Mysoftoft Shared\Web Server Extensions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\设计师;但是,这在其他服务器上不可用。是否是重新加载样式表的其他方式?


谢谢,


Odilia

解决方案

将文件放在上面的目录中只会替换原始定义  defaultSite.css。用于Sharepoint设计器"重置为网站定义"。实际的css存储在sharepoint数据库中。


所以你可以


1。重新部署网站。


2。在管理商店网站上转到http:// adminstore:someport / Style%20Library / Forms / AllItems.aspx,并替换defaultSite.css。


即使更换了defaultsite.css之后你可能会发现客户仍然无法接受更改。浏览器习惯缓存.css和.js。我想在我的js和css引用中添加版本参数,以确保浏览器将获得我想要的版本
即defaultsite.css?v = 1.0.2


Hi All,

Once the site is installed, what is the best way of reloading the style sheets?

We had to make last minute changes in the DefaultSite.css file and we have copied the new file on :

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\CommerceServerDefaultSiteStyles\Styles

What is the next step?

In development environment we used Share Point Designer; but, this is not available on the other servers. Is it other way of reloading the style sheets?

Thanks,

Odilia

解决方案

Placing the file in the above directory does nothing more then replacing the original definition  of the defaultSite.css. for use in Sharepoint designer "reset to site definition". The actual css is stored in the sharepoint database.

So you can either

1. re-deploy the site.

2. On the admin store site goto http://adminstore:someport/Style%20Library/Forms/AllItems.aspx, and replace the defaultSite.css.

Even after replacing the defaultsite.css you may find that clients will still not pick up the change. Browsers have a habit of caching .css and .js. I like to add version paramter to my js and css reference to ensure the browser will get the version I want ie defaultsite.css?v=1.0.2


这篇关于如何重新加载样式表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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