CSS相关问题 [英] Css Related Issue

查看:64
本文介绍了CSS相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中编写了一个CSS文件,当我在浏览器中键入localhost时,该文件可以正常工作,但是当我键入同一台计算机的IP地址时,.css文件却无法工作.

I wrote a css file in my application which is working properly when I type localhost in the browser but when I type the ip address of that same machine the .css file is not working.

Is there any permission related issue?

推荐答案



您的应用程序是否使用基于表单的身份验证?在这种情况下,您需要应用< location>标记到Web.config文件以配置对特定文件和文件夹的访问.例如,



Is your application using forms-based authentication? If that the case, you need to apply the <location> tag to the Web.config file to configure access to a specific file and folder. For instance,

<configuration>
...
<location path="yourCSSFolderPath">
		<system.web>
			<authorization>
				<allow users="*"/>
			</authorization>
		</system.web>
	</location>
</configuration>



来源: http://support.microsoft.com/kb/316871 [



Source: http://support.microsoft.com/kb/316871[^]


这篇关于CSS相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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