简体   繁体   English

ASp.net网站上的所有图像CSS样式均已消失

[英]ASp.net Website all images CSS styles are disappeared

I created a website using ASP.Net, and used J-Query and CSS also the website working properly offline but when i uploading it on server all images, CSS- styles , every thing disappears . 我使用ASP.Net创建了一个网站,并使用J-Query和CSS也使该网站脱机工作,但是当我将其上载到所有图像,CSS样式的服务器上时,所有东西都消失了。

Before uploading website i published website and i got files that i uploaded, but it is not working my website link in http://bloodcheckup4all.freetzi.com pls check it and give me solution 在上传网站之前,我已经发布了网站,并且我已经上传了文件,但是在http://bloodcheckup4all.freetzi.com中的网站链接不起作用,请检查并提供解决方案

and my other question is that before uploading my website should i change the extension of Index.aspx to index.html? 我的另一个问题是,在上传我的网站之前,我应该将Index.aspx的扩展名更改为index.html吗?

FIRST QUESTION: 第一个问题:

You should change the url of all your CSS images to use the web root as it's starting point, not a url relative to your style folder: 您应该更改所有CSS图像的url,以使用Web根作为起点,而不是对于样式文件夹的url:

For example: 例如:

background: url('../Images/MyImage.png');

should be changed to: 应该更改为:

background: url('/Images/MyImage.png');

This will keep you out of trouble. 这样可以避免麻烦。

SECOND QUESTION 第二个问题

No! 没有! The ASP.NET ISAPI will not handle (parse) the page if you change the extension (unless the ISAPI is specifically configured to do so, which I highly doubt). 如果您更改扩展名,则ASP.NET ISAPI将不会处理(解析)页面(除非ISAPI被专门配置为执行此操作,我对此表示高度怀疑)。

You need to find a host that supports whatever version of the .NET framework your using. 您需要找到一个支持所使用的.NET Framework版本的主机。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM