外部样式表问题 [英] external stylesheet problem

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

问题描述

我创建了一个外部样式表文件''styles.css''和一个html文件,

包括以下行:


< LINK REL = "样式表" TYPE ="文本/ CSS" HREF =" styles.css"

.css文件和html文件都驻留在我的本地PC上。当我用IE6打开

html文件时,网页中没有显示样式。如果我将.css和html文件上传到我的网络服务器,一切看起来都很好。


关于为什么这些款式不会出现在我身上的任何想法本地PC?

解决方案

HarryO写道:

我创建了一个外部样式表文件''styles.css ''和一个包含以下行的
html文件:

< LINK REL =" stylesheet" TYPE ="文本/ CSS" HREF =" styles.css"

.css文件和html文件都驻留在我的本地PC上。
当我用IE6打开html文件时,没有看到样式和html文件上传到我的网络服务器,一切看起来都很好。

关于为什么样式不会出现在我的本地PC上的任何想法?




它们在同一个文件夹中吗?


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -

现在玩:Kasper博士的兔子秀 - 介于两者之间

" HarryO" < CH ******* @ comcast.net>写道:

我创建了一个外部样式表文件''styles.css''和一个html文件,其中包含以下行:

< LINK REL =" ;样式表" TYPE ="文本/ CSS" HREF =" styles.css"




它真的没有>最后,还是就在下一个

线?如果它是前者,这可能是个问题。


-

Chris


.css和html文件位于同一文件夹中。


在< LINK REL =" stylesheet"结尾处有一个''>'' TYPE =" text / css"

HREF =" styles.css"


" Els" < EL ********* @ tiscali.nl>在消息中写道

新闻:Xn ***************** @ 130.133.1.4 ...

HarryO写道:

我创建了一个外部样式表文件''styles.css''和一个
html文件,其中包含以下行:

< LINK REL = "样式表" TYPE ="文本/ CSS" HREF =" styles.css"

.css文件和html文件都驻留在我的本地PC上。
当我用IE6打开html文件时,没有看到样式和html文件上传到我的网络服务器,一切看起来都很好。

关于为什么样式不会出现在我的本地PC上的任何想法?



它们是否在同一个文件夹中?

- Els http://locusmeus.com/
Sonhos vem。 Sonhos v?o。 Orestoébritfeito。
- Renato Russo -
现在正在播放:Kasper博士的兔子秀 - 中间



I created an external stylesheet file ''styles.css'' and an html file that
includes the line:

<LINK REL="stylesheet" TYPE="text/css" HREF="styles.css"

Both the .css file and the html file reside on my local PC. When I open the
html file with IE6 the styles are not seen in the webpage. Everything looks
fine if I upload the .css and html files to my web server.

Any ideas on why the styles don''t appear on my local PC?

解决方案

HarryO wrote:

I created an external stylesheet file ''styles.css'' and an
html file that includes the line:

<LINK REL="stylesheet" TYPE="text/css" HREF="styles.css"

Both the .css file and the html file reside on my local PC.
When I open the html file with IE6 the styles are not seen
in the webpage. Everything looks fine if I upload the .css
and html files to my web server.

Any ideas on why the styles don''t appear on my local PC?



Are they in the same folder?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Kasper''s Rabbit Show - In Between


"HarryO" <ch*******@comcast.net> writes:

I created an external stylesheet file ''styles.css'' and an html file that
includes the line:

<LINK REL="stylesheet" TYPE="text/css" HREF="styles.css"



Does it really not have a > on the end, or is that just on the next
line? That might be a problem if it''s the former.

--
Chris


The .css and html files are in the same folder.

There is an ''>'' at the close of <LINK REL="stylesheet" TYPE="text/css"
HREF="styles.css"

"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...

HarryO wrote:

I created an external stylesheet file ''styles.css'' and an
html file that includes the line:

<LINK REL="stylesheet" TYPE="text/css" HREF="styles.css"

Both the .css file and the html file reside on my local PC.
When I open the html file with IE6 the styles are not seen
in the webpage. Everything looks fine if I upload the .css
and html files to my web server.

Any ideas on why the styles don''t appear on my local PC?



Are they in the same folder?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Kasper''s Rabbit Show - In Between



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

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