问题:样式表并不总是在第一次尝试时加载。 [英] Problem: Stylesheets don't always load on first try.

查看:81
本文介绍了问题:样式表并不总是在第一次尝试时加载。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://mysite.verizon.net/gdguarino/montauk.htm


如果问题

在此页面上没有显示,您也可以点击网站的其他页面。 />

我为每个页面使用两个样式表,一个是位置和大小的

每个元素的信息,另一个是颜色和背景的信息

信息。位置样式表对所有页面都是通用的。


有时只有颜色。样式表加载,使页面变得混乱。

重新加载页面修复它。我的怀疑是,它只是糟糕的

托管(Verizon,我的帐户免费)。它可能是别的吗?

例如,我的语法是否适合调用两个样式表?

(可能不是,虽然它似乎确实有用)。 />

Greg Guarino

http://mysite.verizon.net/gdguarino/montauk.htm

You can also click on the other pages of the site if the problem
doesn''t show itself on this page.

I''m using two stylesheets for each page, one with the position and size
information for each element and another for the color and background
info. The position stylesheet is common to all pages.

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it''s just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).

Greg Guarino

推荐答案

g@risky-biz.com 写道:
http://mysite.verizon.net/gdguarino/montauk.htm

有时只有颜色。样式表加载,使页面混乱。
重新加载页面修复它。我的怀疑是,它只是糟糕的主持(Verizon,我的帐户免费)。它可能是别的吗?
例如,我的语法是否适合调用两个样式表?
(可能不是,虽然它看起来确实有效)。
http://mysite.verizon.net/gdguarino/montauk.htm

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it''s just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).



我在这看到没有这样的问题。 Mozilla v1.7.12。

您使用的浏览器是什么?你试过另一个浏览器吗?是通过代理吗?
?你有没有刷新缓存?

删除<! - - >"分隔符。它们是不必要的。无论如何,

的浏览器会找到那些必要的忽略@import。他们可能会混淆你的

浏览器。

通常会引用内容,url(photobasic.css),以尽量减少

与操作系统的怪癖。只需引用的文件名通常只需要。


你真的应该为你的页面设置一个doctype。它鼓励跨浏览器实现

统一体验。

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"

http://www.w3.org/TR/html4/strict.dtd">

-

jmm(连字符)列表(at )sohnen-moe(dot)com

(删除电子邮件的.AXSPAMGN)


I see no such problem here. Mozilla v1.7.12.
What browser are you using? Have you tried another browser? Is it
through a proxy? Did you flush the cache?
Remove the "<!-- -->" delimiters. They are unnecessary. Browsers that
find those necessary ignore @import anyway. And they may be confusing your
browser.
Normally the contents are quoted, url("photobasic.css"), to minimize
quirks with the OS. Just the quoted filename is normally all that is needed.

You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


2005年10月26日星期三17:03:33 - 0700,Jim Moe

< jm *************** @ sohnen-moe.com>写道:
On Wed, 26 Oct 2005 17:03:33 -0700, Jim Moe
<jm***************@sohnen-moe.com> wrote:
g@risky-biz.com写道:
g@risky-biz.com wrote:
http://mysite.verizon.net/gdguarino/montauk.htm

有时只有颜色。样式表加载,使页面混乱。
重新加载页面修复它。我的怀疑是,它只是糟糕的主持(Verizon,我的帐户免费)。它可能是别的吗?
例如,我的语法是否适合调用两个样式表?
(可能不是,虽然它看起来确实有效)。
我看到这里没有这样的问题。 Mozilla v1.7.12。
您使用的浏览器是什么?
http://mysite.verizon.net/gdguarino/montauk.htm

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it''s just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).
I see no such problem here. Mozilla v1.7.12.
What browser are you using?



Firefox 1.4您是否尝试过其他浏览器?


不是今天,但我认为它也发生在IE中。是通过代理吗?
我不确定我知道那是什么。我家里有Verizon DSL和

工作

你是否刷新了缓存?


我刚刚做了,现在我不能解决问题,但我怀疑

它可能只会在我改变之后发生页面。

删除<! - - >"分隔符。它们是不必要的。无论如何,找到那些必要的浏览器会忽略@import。他们可能会混淆你的浏览器。


完成。谢谢

通常引用内容,url(photobasic.css),以尽量减少操作系统的怪癖。通常只需要引用的文件名即可。

你真的应该为你的页面设置一个doctype。它鼓励跨浏览器的统一体验。
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"
" http://www.w3 .org / TR / html4 / strict.dtd">


Firefox 1.4Have you tried another browser?
Not today, but I think it happened in IE as well.Is it
through a proxy? I''m not sure I know what that is. I''ve got Verizon DSL at home and at
work
Did you flush the cache?
I just did now and I can''t make the problem occur now, but I suspect
that it may only happen after I''ve changed the pages.
Remove the "<!-- -->" delimiters. They are unnecessary. Browsers that
find those necessary ignore @import anyway. And they may be confusing your
browser.
Done. Thanks
Normally the contents are quoted, url("photobasic.css"), to minimize
quirks with the OS. Just the quoted filename is normally all that is needed.

You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">




也完成了。再次感谢。


这只是一个照片库网站,我正在把我的空间放在一起

时间。我还用它来尝试一下网页设计概念,因为我需要学习它们。换句话说,它并不重要。我仍然很想知道这个问题是否出现在其他任何人的电脑上。


Greg Guarino


文章< 7m ******************************** @ 4ax.com>,

Greg G< gd ******* @ verizon.net>写道:
In article <7m********************************@4ax.com>,
Greg G <gd*******@verizon.net> wrote:
2005年10月26日星期三17:03:33 -0700,Jim Moe
< jm ************* **@sohnen-moe.com>写道:
On Wed, 26 Oct 2005 17:03:33 -0700, Jim Moe
<jm***************@sohnen-moe.com> wrote:
你真的应该有你的网页的doctype。它鼓励跨浏览器的统一体验。
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"
" http://www.w3 .org / TR / html4 / strict.dtd">
You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">



也完成了。再次感谢。



Also done. Thanks again.




现在将您的网址提交至< http://validator.w3.org/>验证您的HTML

和您的CSS URL到< http://jigsaw.w3.org/css-validator/>验证

你的CSS。通过向这两个网站提交页面

可以发现各种问题。

这只是一个照片库网站我正在我的备用中/>时间。当我学习它们时,我也用它来尝试网页设计概念。


这些验证器将帮助您进行实验。

换句话说,它并不重要。我仍然很想知道这个问题是否出现在其他任何人的电脑上。



Now submit your URL to <http://validator.w3.org/> to validate your HTML
and your CSS URL to <http://jigsaw.w3.org/css-validator/> to validate
your CSS. All kinds of problems can be discovered by submitting the page
to these two sites.
This is just a photo gallery site I''m putting together in my spare
time. I also use it to experiment a bit with web design concepts as I
learn them.
Those validators will help you in your experiments.
In other words, it''s nothing crucial. I''m still curious to
know if this problem shows up on anyone else''s computer.




可能还有其他问题要担心一次页面验证。

不同的浏览器以不同的方式显示页面。很大程度上依赖于

多少压力_you_ out。


leo


-

< http://web0.greatbasin.net/~leo/>



There may be other problems to worry about once the page validates.
Different browsers display the pages somewhat differently. A lot depends
on how much that stresses _you_ out.

leo

--
<http://web0.greatbasin.net/~leo/>


这篇关于问题:样式表并不总是在第一次尝试时加载。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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