简体   繁体   English

Cufon在开发服务器和已发布版本上的差异

[英]Cufon differences on dev-server and published version

i made a webapplication with asp.net mvc 2 and used cufon to make some fonts "prettier" 我用asp.net mvc 2制作了一个web应用程序,并使用cufon制作了一些“漂亮”的字体。

when i view the website local with the development server in visual studio everything works fine and the fonts and all characters are shown correctly (some parts are in german so i have some special signs like äöü etc.) now i published the site to my server and that also works fine but now the special characters aren't shown in cufon transformed texts. 当我在Visual Studio中使用开发服务器查看本地网站时,一切正常,字体和所有字符均正确显示(某些部分为德语,所以我有一些特殊符号,例如äöü等),现在我将该网站发布到了服务器上并且也可以正常工作,但现在特殊字符不在cufon转换的文本中显示。 also the texts are a little bit bigger on the published version than the local. 出版的文本也比本地的要大一些。

i checked if both js files are the same and they are. 我检查了两个js文件是否相同。

any ideas where the problem is? 有什么问题的想法吗?

mmmh the characters problem seems to me an encoding problem. mmmh字符问题在我看来是一个编码问题。 Maybe locally you use UTF and on the server there is a different encoding... what if you try to encode the special characters using the respective character entity reference? 也许在本地使用UTF,并且在服务器上使用不同的编码...如果尝试使用各自的字符实体引用对特殊字符进行编码,该怎么办? (see http://www.chami.com/tips/internet/050798i.html ) (请参阅http://www.chami.com/tips/internet/050798i.html

The fonts to be bigger, really strange. 字体要大一些,真的很奇怪。 Are you sure that the CSS is exactly the same locally and server side? 您确定CSS在本地和服务器端完全相同吗? (Try to compare using Firebug). (尝试使用Firebug进行比较)。

Hope this helps... 希望这可以帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Webpack开发服务器和React Server端渲染 - Webpack Dev-Server And React Server Side rendering 如何相对于root更改webpack开发服务器输出publicPath - How to change webpack dev-server output publicPath relative to root 在Docker容器中使用带有Webpack dev-server的服务工作者 - Use service workers with Webpack dev-server inside Docker container Webpack开发服务器-如何为具有更新资产的静态文件提供服务? - Webpack dev-server - how to serve a static file with updated assets? Webpack:在没有开发服务器的情况下,设置用于访问API的CORS标头 - Webpack: without dev-server, setting CORS headers for accessing API 开发和发布版本之间的URL路径更改 - URL path changes between dev and published version 在 Windows 10 上运行 npm run dev-server 时出错 - Getting Error while running npm run dev-server on windows 10 如果我设置开发服务器的 contentBase 路径,webpack 不会提供更新的文件 - If I set contentBase path of dev-server, webpack doesn't serve updated files 有没有办法可以修改在 dev-server 模式下生成的 manifest.json - Is there a way we can modify manifest.json generated in dev-server mode Webpack & Babel - nodejs 和 yarn 更新后无法运行 dev-server - Webpack & Babel - Unable to run dev-server after nodejs and yarn update
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM