嵌套样式表 [英] nested style sheets

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

问题描述

您好;


我是新来的,所以如果这个帖子不合适,请原谅。


我有一个基本样式表sheet1对于我的所有页面和次要样式

sheet" sheet2"某些页面会覆盖一些内容。我在页面的head部分中有以下样式表链接的




< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet1.css" title =" sheet1">

< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet2.css" title =" sheet2">


这在IE中运行得很好,但在Mozilla或Opera中没有。我搜索了一下,但是还没有找到答案。


有谁可以解释我错过了什么?


TIA。


Charles ...


---

外发邮件是经过认证的无病毒。

由AVG反病毒系统检查( http:/ /www.grisoft.com)

版本:6.0.726 /病毒库:481 - 发布日期:7/22/04

Hello;

I''m new here, so please excuse me if this posting is not appropriate.

I have a basic style sheet "sheet1" for all my pages, and a secondary style
sheet "sheet2" that overrides a couple of things for some pages. I have the
following stylesheet links in the head section of a page:

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?

TIA.

Charles...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/04

推荐答案

* Charles Crume *< cc@charlescrumesoftware.com>:
*Charles Crume* <cc@charlescrumesoftware.com>:

< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet1.css" title =" sheet1">
< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet2.css" title =" sheet2">

这在IE中运行得很好,但不适用于Mozilla或Opera。

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera.




你必须使用相同的''标题''属性,以实现你想要的。


-

这个国家需要的是更多免费的言论,值得倾听。 ;

Hansell B. Duckett



You have to use identical ''title'' attributes to achieve what you want.

--
"What this country needs is more free speech worth listening to."
Hansell B. Duckett


Charles Crume写道:
Charles Crume wrote:
< link rel =" ;样式表"类型= QUOT;文本/ CSS" HREF =" sheet1.css" title =" sheet1">
< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet2.css" title =" sheet2">

这在IE中运行得很好,但不适用于Mozilla或Opera。

任何人都可以解释我错过的内容吗?
<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera.

Can anyone explain what I am missing?




不是没有网址。狂野猜测:.css文件不应该像

text / css那样服务。但是新版本的Mozilla / Opera

打破了规范并嗅了css的内容,所以这可能不是

的情况。这就是我准备做的所有猜测。


-

Brian(删除.invalid给我发电子邮件)
http://www.tsmchughs.com/


Charles Crume写道:
Charles Crume wrote:
< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet1.css" title =" sheet1">
< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" sheet2.css" title =" sheet2">

这在IE中运行得很好,但不适用于Mozilla或Opera。我搜索了谷歌,但还没有找到答案。

任何人都可以解释我错过的东西吗?
<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?




事实IE有比灭虫者的命中列表更多的错误。


严重的是,任何时候其他浏览器都做同样的事情,而IE会做一些事情

不同,这通常表明IE中存在错误。正如另一张海报

所提到的那样,你的CSS很可能不会被用作text / css;如果不是,

那么就标准兼容的浏览器而言,它不是CSS。


-

Shawn K. Quinn



The fact that IE has more bugs than an exterminator''s hit list.

Seriously, any time other browsers do the same thing, and IE does something
different, that''s usually indicative of a bug in IE. As another poster
alluded, it''s likely your CSS isn''t being served as text/css; if it is not,
then it''s not CSS as far as a standards compliant browser is concerned.

--
Shawn K. Quinn


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

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