CSS格式化没有出现在登录页面上 [英] CSS Formatting not appearing on Login page

查看:103
本文介绍了CSS格式化没有出现在登录页面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个使用表格安全的应用程序。我有一个Login.aspx页面

,它引用了我的MasterPage.master。主页面依次

引用一个CSS。


在VS 2005的设计器中,登录页面呈现正确....

正确的格式由我的CSS提供。


但是在应用程序运行时,所有格式都会在登录时消失

页面...没有css格式完全发生。


请注意,应用程序中的其他页面(即登录后的页面)显示正确格式化为
。这很令人费解!


另一个提示:这一切都有效,直到我在app&的根目录下创建了一个子目录

。移动网页到那里。


我的想法是VS 2005(完全是最新版本)。


任何想法?


谢谢,

Bazza

Hi,

I have an app which utilizes forms security. I have a Login.aspx page
which references my MasterPage.master. The master page in turn
references a css.

In the designer of VS 2005, the Login page renders correctly.... with
correct formatting as provided by my css.

At application runtime however, all formatting disappears on the login
page... no css formatting occurs at all.

Note that other pages in the app (ie. subsequent to login) appear
correctly formatted. This is puzzling!

Another hint : this was all working until I created a sub-directory
under the root of the app & moved web pages to there.

My ide is VS 2005 (completely up to date version).

Any ideas ?

Thanks,
Bazza

推荐答案

3月11日,8日:下午32点,Bazza Formez < bruce_for ... @ clear.net.nzwrote:
On Mar 11, 8:32 pm, "Bazza Formez" <bruce_for...@clear.net.nzwrote:




我有一个使用表格的应用程序安全。我有一个Login.aspx页面

,它引用了我的MasterPage.master。主页面依次

引用一个CSS。


在VS 2005的设计器中,登录页面呈现正确....

正确的格式由我的CSS提供。


但是在应用程序运行时,所有格式都会在登录时消失

页面...没有css格式完全发生。


请注意,应用程序中的其他页面(即登录后的页面)显示正确格式化为
。这很令人费解!


另一个提示:这一切都有效,直到我在app&的根目录下创建了一个子目录

。移动网页到那里。


我的想法是VS 2005(完全是最新版本)。


任何想法?


谢谢,

Bazza
Hi,

I have an app which utilizes forms security. I have a Login.aspx page
which references my MasterPage.master. The master page in turn
references a css.

In the designer of VS 2005, the Login page renders correctly.... with
correct formatting as provided by my css.

At application runtime however, all formatting disappears on the login
page... no css formatting occurs at all.

Note that other pages in the app (ie. subsequent to login) appear
correctly formatted. This is puzzling!

Another hint : this was all working until I created a sub-directory
under the root of the app & moved web pages to there.

My ide is VS 2005 (completely up to date version).

Any ideas ?

Thanks,
Bazza



你是否在CSS开头使用斜杠的绝对路径?


例如


< link type =" text / css" HREF =" /style.css" rel =" stylesheet">

Do you use an absolute path with slash at beginning to CSS?

e.g.

<link type="text/css" href="/style.css" rel="stylesheet">


您好Alexey,


感谢您的回复。

我的代码是:

< link href =" styles.css"的rel ="样式表"类型= QUOT;文本/ CSS" />


(顺便说一句...... css与主页在同一目录中。)


我试过了以下使用绝对路径....

< link href ="〜/ mydirectory / styles.css"的rel ="样式表" type =" text /

css" />


但这也给出了同样的问题..


其他任何想法Alexey?


非常感谢,

Bazza

Hi Alexey,

Thanks for your reply.

The code I had was :
<link href="styles.css" rel="stylesheet" type="text/css" />

(By the way ... The css is in the same directory as the masterpage.)

I have tried the following using an absolute path ....
<link href="~/mydirectory/styles.css" rel="stylesheet" type="text/
css" />

But this also gave same problem..

Any other ideas Alexey ?

Many thanks,
Bazza


您好Alexey,


感谢您的光临你的回复。


我的代码是:

< link href =" styles.css"的rel ="样式表"类型= QUOT;文本/ CSS" />


(顺便说一句...... css与主页在同一目录中。)


我试过了以下使用绝对路径....

< link href ="〜/ mydirectory / styles.css"的rel ="样式表" type =" text /

css" />


但这也给出了同样的问题..


其他任何想法Alexey?


非常感谢,

Bazza

Hi Alexey,

Thanks for your reply.

The code I had was :
<link href="styles.css" rel="stylesheet" type="text/css" />

(By the way ... The css is in the same directory as the masterpage.)

I have tried the following using an absolute path ....
<link href="~/mydirectory/styles.css" rel="stylesheet" type="text/
css" />

But this also gave same problem..

Any other ideas Alexey ?

Many thanks,
Bazza


这篇关于CSS格式化没有出现在登录页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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