简体   繁体   English

重定向到登录时,ASP网站无法呈现样式吗?

[英]ASP website not rendering style when redirected to log-in?

I am a little lost of why my log-in page is not rendering the styling when the default page is redirected to it. 当我将默认页面重定向到登录页面时,为什么我的登录页面没有呈现样式,我有点迷惑。

1: is the page I get when I load my website from VS. 1:是从VS加载网站时获得页面

2: is the page I should get . 2:是我应该获得页面 (I do get the styling when I enter the log-in page direct URL) (输入登录页面直接URL时确实得到样式)

What do I have to do to fix this? 我必须怎么做才能解决此问题?

在此处输入图片说明

Is it possible that css file is generated from a asp page? css文件可能是从asp页生成的吗? The default webserver from VS doesn't support asp files. VS的默认Web服务器不支持asp文件。

Things you can check: is the css file called? 您可以检查的事情:css文件是否被调用? (network inspector) Is the html of the login page completely valid? (网络检查员)登录页面的html是否完全有效? Is it an internal redirect or external redirect? 是内部重定向还是外部重定向? A internal redirect can have a different location and therefore maybe unable to locate the css file. 内部重定向的位置可能不同,因此可能无法找到css文件。

确保在登录页面中正确指定了CSS文件的路径。

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

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